"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/test/java/org/apache/hc/client5/http/psl/TestPublicSuffixMatcher.java" between
httpcomponents-client-5.2-src.tar.gz and httpcomponents-client-5.2.1-src.tar.gz

About: Apache HttpComponents Client provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. Java sources.

TestPublicSuffixMatcher.java  (httpcomponents-client-5.2-src):TestPublicSuffixMatcher.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 75 skipping to change at line 75
Assertions.assertNull(matcher.getDomainRoot("any.tokyo.jp")); Assertions.assertNull(matcher.getDomainRoot("any.tokyo.jp"));
// ICANN // ICANN
Assertions.assertEquals("metro.tokyo.jp", matcher.getDomainRoot("metro.t okyo.jp")); Assertions.assertEquals("metro.tokyo.jp", matcher.getDomainRoot("metro.t okyo.jp"));
Assertions.assertEquals("blah.blah.tokyo.jp", matcher.getDomainRoot("bla h.blah.tokyo.jp")); Assertions.assertEquals("blah.blah.tokyo.jp", matcher.getDomainRoot("bla h.blah.tokyo.jp"));
Assertions.assertEquals("blah.ac.jp", matcher.getDomainRoot("blah.blah.a c.jp")); Assertions.assertEquals("blah.ac.jp", matcher.getDomainRoot("blah.blah.a c.jp"));
// Unknown // Unknown
Assertions.assertEquals("garbage", matcher.getDomainRoot("garbage")); Assertions.assertEquals("garbage", matcher.getDomainRoot("garbage"));
Assertions.assertEquals("garbage", matcher.getDomainRoot("garbage.garbag e")); Assertions.assertEquals("garbage", matcher.getDomainRoot("garbage.garbag e"));
Assertions.assertEquals("garbage", matcher.getDomainRoot("*.garbage.garb age")); Assertions.assertEquals("garbage", matcher.getDomainRoot("*.garbage.garb age"));
Assertions.assertEquals("garbage", matcher.getDomainRoot("*.garbage.garb age.garbage")); Assertions.assertEquals("garbage", matcher.getDomainRoot("*.garbage.garb age.garbage"));
Assertions.assertEquals("*.compute-1.amazonaws.com", matcher.getDomainRo
ot("*.compute-1.amazonaws.com"));
} }
@Test @Test
public void testGetDomainRootOnlyPRIVATE() { public void testGetDomainRootOnlyPRIVATE() {
// Private // Private
Assertions.assertEquals("xx", matcher.getDomainRoot("example.XX", Domain Type.PRIVATE)); Assertions.assertEquals("xx", matcher.getDomainRoot("example.XX", Domain Type.PRIVATE));
Assertions.assertEquals("xx", matcher.getDomainRoot("www.example.XX", Do mainType.PRIVATE)); Assertions.assertEquals("xx", matcher.getDomainRoot("www.example.XX", Do mainType.PRIVATE));
Assertions.assertEquals("xx", matcher.getDomainRoot("www.blah.blah.examp le.XX", DomainType.PRIVATE)); Assertions.assertEquals("xx", matcher.getDomainRoot("www.blah.blah.examp le.XX", DomainType.PRIVATE));
Assertions.assertEquals("appspot.com", matcher.getDomainRoot("example.ap pspot.com")); Assertions.assertEquals("appspot.com", matcher.getDomainRoot("example.ap pspot.com"));
// Too short // Too short
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

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