@Test public void testInvalidFileType() throws Exception { File f = TestUtils.findTestFile( "/configurations/invalid/mix.txt" ); FileDefinition def = ParsingModelIo.readConfigurationFile( f, true ); Assert.assertEquals( 1, def.getParsingErrors().size()); Assert.assertEquals( ErrorCode.P_INVALID_FILE_TYPE, def.getParsingErrors().iterator().next().getErrorCode()); }
public static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ) { FileDefinitionParser parser = new FileDefinitionParser( relationsFile, ignoreComments ); return parser.read(); }
ParsingModelIo { public static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ) { FileDefinitionParser parser = new FileDefinitionParser( relationsFile, ignoreComments ); return parser.read(); } }
ParsingModelIo { public static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ) { FileDefinitionParser parser = new FileDefinitionParser( relationsFile, ignoreComments ); return parser.read(); } private  ParsingModelIo(); }
ParsingModelIo { public static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ) { FileDefinitionParser parser = new FileDefinitionParser( relationsFile, ignoreComments ); return parser.read(); } private  ParsingModelIo(); static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ); static String writeConfigurationFile( FileDefinition relationsFile, boolean writeComments, String lineSeparator ); static void saveRelationsFile( FileDefinition relationsFile, boolean writeComments, String lineSeparator ); static void saveRelationsFileInto(
			File targetFile,
			FileDefinition relationsFile,
			boolean writeComments,
			String lineSeparator ); }
ParsingModelIo { public static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ) { FileDefinitionParser parser = new FileDefinitionParser( relationsFile, ignoreComments ); return parser.read(); } private  ParsingModelIo(); static FileDefinition readConfigurationFile( File relationsFile, boolean ignoreComments ); static String writeConfigurationFile( FileDefinition relationsFile, boolean writeComments, String lineSeparator ); static void saveRelationsFile( FileDefinition relationsFile, boolean writeComments, String lineSeparator ); static void saveRelationsFileInto(
			File targetFile,
			FileDefinition relationsFile,
			boolean writeComments,
			String lineSeparator );  }