@Test public void readFilterTest() throws IOException, XmlPullParserException { File filterFile = new File(getTestResourcesDirectory() + File.separatorChar + "filter.xml"); Filter filter = FilterFile.getFilter(filterFile); Repositories repositories = filter.getRepositories(); assertEquals(repositories.getRepository().size(), 1); Repository repository = repositories.getRepository().get(0); assertEquals(repository.getId(), "default"); assertEquals(repository.getFilenames().getIncludes().size(), 1); assertEquals(repository.getFilenames().getExcludes().size(), 0); assertEquals(repository.getPaths().getIncludes().size(), 1); assertEquals(repository.getPaths().getExcludes().size(), 0); assertEquals(repository.getProperties().getIncludes().size(), 1); assertEquals(repository.getProperties().getExcludes().size(), 0); }
public static Filter getFilter(File filterFile) throws FileNotFoundException, IOException, XmlPullParserException { FilterXpp3Reader read = new FilterXpp3Reader(); Filter filter = read.read(new FileInputStream(filterFile)); return filter; }
FilterFile { public static Filter getFilter(File filterFile) throws FileNotFoundException, IOException, XmlPullParserException { FilterXpp3Reader read = new FilterXpp3Reader(); Filter filter = read.read(new FileInputStream(filterFile)); return filter; } }
FilterFile { public static Filter getFilter(File filterFile) throws FileNotFoundException, IOException, XmlPullParserException { FilterXpp3Reader read = new FilterXpp3Reader(); Filter filter = read.read(new FileInputStream(filterFile)); return filter; }  }
FilterFile { public static Filter getFilter(File filterFile) throws FileNotFoundException, IOException, XmlPullParserException { FilterXpp3Reader read = new FilterXpp3Reader(); Filter filter = read.read(new FileInputStream(filterFile)); return filter; }  static Filter getFilter(File filterFile); static Filter getFilter(InputStream filterFile); static String toString(Filter filter); }
FilterFile { public static Filter getFilter(File filterFile) throws FileNotFoundException, IOException, XmlPullParserException { FilterXpp3Reader read = new FilterXpp3Reader(); Filter filter = read.read(new FileInputStream(filterFile)); return filter; }  static Filter getFilter(File filterFile); static Filter getFilter(InputStream filterFile); static String toString(Filter filter);  }