Code example for Set

Methods: contains, size

0
 
		InputStream stream = getClass().getResourceAsStream("resources/example_permutation.perm.xml");
 
		Set<String> files = xmlPermutationProvider.getPermutationFiles(stream);
 
		Assert.assertEquals(7, files.size());
 
		Assert.assertTrue(files.contains("showcase/01366743E08C511EF8DB208174B33C6F.cache.html"));
		Assert.assertTrue(files.contains("index.html"));
		Assert.assertTrue(files.contains("logo.png"));
		Assert.assertTrue(files.contains("showcase/hosted.html"));
		Assert.assertTrue(files.contains("showcase/showcase.nocache.js"));
		Assert.assertTrue(files.contains("showcase/clear.cache.gif"));
		Assert.assertTrue(files.contains("/"));
 
	} 
 
	@Test 
	public void testReadWritePermInformation() throws XMLPermutationProviderException, UnsupportedEncodingException { 
		XMLPermutationProvider xmlPermutationProvider = new XMLPermutationProvider();