@Test public void testValid() throws Exception { DependencyValidator dependencyValidator = new DependencyValidator( new Dependency( new GAV( "groupId", "artifactId", "1.0" ) ) ); assertTrue( dependencyValidator.validate() ); }
public boolean validate() { if ( !validateGroupId() || !validateArtifactId() || !validateVersion() ) { return false; } else { return true; } }
DependencyValidator { public boolean validate() { if ( !validateGroupId() || !validateArtifactId() || !validateVersion() ) { return false; } else { return true; } } }
DependencyValidator { public boolean validate() { if ( !validateGroupId() || !validateArtifactId() || !validateVersion() ) { return false; } else { return true; } } DependencyValidator( final Dependency dependency ); }
DependencyValidator { public boolean validate() { if ( !validateGroupId() || !validateArtifactId() || !validateVersion() ) { return false; } else { return true; } } DependencyValidator( final Dependency dependency ); static String validateVersion( final String version ); static String validateArtifactId( final String artifactId ); static String validateGroupId( final String groupId ); boolean validate(); boolean validateVersion(); boolean validateArtifactId(); boolean validateGroupId(); String getMessage(); }
DependencyValidator { public boolean validate() { if ( !validateGroupId() || !validateArtifactId() || !validateVersion() ) { return false; } else { return true; } } DependencyValidator( final Dependency dependency ); static String validateVersion( final String version ); static String validateArtifactId( final String artifactId ); static String validateGroupId( final String groupId ); boolean validate(); boolean validateVersion(); boolean validateArtifactId(); boolean validateGroupId(); String getMessage();  }