"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/test/java/org/apache/http/conn/util/TestPublicSuffixListParser.java" between
httpcomponents-client-4.5.8-src.tar.gz and httpcomponents-client-4.5.9-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

TestPublicSuffixListParser.java  (httpcomponents-client-4.5.8-src):TestPublicSuffixListParser.java  (httpcomponents-client-4.5.9-src)
skipping to change at line 55 skipping to change at line 55
final InputStream in = classLoader.getResourceAsStream("suffixlist.txt") ; final InputStream in = classLoader.getResourceAsStream("suffixlist.txt") ;
Assert.assertNotNull(in); Assert.assertNotNull(in);
final PublicSuffixList suffixList; final PublicSuffixList suffixList;
try { try {
final PublicSuffixListParser parser = new PublicSuffixListParser(); final PublicSuffixListParser parser = new PublicSuffixListParser();
suffixList = parser.parse(new InputStreamReader(in, Consts.UTF_8)); suffixList = parser.parse(new InputStreamReader(in, Consts.UTF_8));
} finally { } finally {
in.close(); in.close();
} }
Assert.assertNotNull(suffixList); Assert.assertNotNull(suffixList);
Assert.assertEquals(Arrays.asList("jp", "ac.jp", "*.tokyo.jp", "no", "h\ u00E5.no"), suffixList.getRules()); Assert.assertEquals(Arrays.asList("xx", "jp", "ac.jp", "*.tokyo.jp", "no ", "h\u00E5.no"), suffixList.getRules());
Assert.assertEquals(Arrays.asList("metro.tokyo.jp"), suffixList.getExcep tions()); Assert.assertEquals(Arrays.asList("metro.tokyo.jp"), suffixList.getExcep tions());
} }
@Test @Test
public void testParseByType() throws Exception { public void testParseByType() throws Exception {
final ClassLoader classLoader = getClass().getClassLoader(); final ClassLoader classLoader = getClass().getClassLoader();
final InputStream in = classLoader.getResourceAsStream("suffixlist2.txt" ); final InputStream in = classLoader.getResourceAsStream("suffixlist2.txt" );
Assert.assertNotNull(in); Assert.assertNotNull(in);
final List<PublicSuffixList> suffixLists; final List<PublicSuffixList> suffixLists;
try { try {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)