@Test public void testParseDirectory_ok() throws Exception { File dir = this.folder.newFolder(); Utils.writeStringInto( "id: tid1\nhandler: in\nname: na", new File( dir, "t1.properties" )); Utils.writeStringInto( "id: tid2\nhandler: in\nname: na", new File( dir, "t2.properties" )); List<ModelError> errors = TargetValidator.parseDirectory( dir ); Assert.assertEquals( 0, errors.size()); }
public static List<ModelError> parseDirectory( File directory ) { return parseDirectory( directory, null ); }
TargetValidator { public static List<ModelError> parseDirectory( File directory ) { return parseDirectory( directory, null ); } }
TargetValidator { public static List<ModelError> parseDirectory( File directory ) { return parseDirectory( directory, null ); } TargetValidator( String propertiesFileContent );  TargetValidator( File propertiesFile );  TargetValidator( File propertiesFile, Object modelObject ); }
TargetValidator { public static List<ModelError> parseDirectory( File directory ) { return parseDirectory( directory, null ); } TargetValidator( String propertiesFileContent );  TargetValidator( File propertiesFile );  TargetValidator( File propertiesFile, Object modelObject ); void validate(); List<ModelError> getErrors(); Properties getProperties(); static List<ModelError> parseDirectory( File directory ); static List<ModelError> parseDirectory( File directory, Component c ); static List<ModelError> parseTargetProperties( File projectDirectory, Component c ); }
TargetValidator { public static List<ModelError> parseDirectory( File directory ) { return parseDirectory( directory, null ); } TargetValidator( String propertiesFileContent );  TargetValidator( File propertiesFile );  TargetValidator( File propertiesFile, Object modelObject ); void validate(); List<ModelError> getErrors(); Properties getProperties(); static List<ModelError> parseDirectory( File directory ); static List<ModelError> parseDirectory( File directory, Component c ); static List<ModelError> parseTargetProperties( File projectDirectory, Component c );  }