SvnPropertiesValidator implements MavenValidator { @Override public void validate(final MavenEnvironment env) throws ValidationException { if (SvnPropertiesValidator.isSvn(env.project())) { final File dir = new File(env.project().getBasedir(), "src"); if (dir.exists()) { this.validate(dir); } else { Logger.info( this, "%s directory is absent, no need to check SVN properties", dir ); } } else { Logger.info(this, "This is not an SVN project"); } }  @Override void validate(final MavenEnvironment env);  }
@Test public void testSimulatesSvnPropgetRequest() throws Exception { final MavenValidator validator = new SvnPropertiesValidator(); final MavenEnvironment env = new MavenEnvironmentMocker().mock(); validator.validate(env); }