1
0
Fork 0
mirror of https://github.com/crawler-commons/crawler-commons synced 2024-06-18 17:49:20 +02:00

Fix up tests to match latest data file

This commit is contained in:
kkrugler_lists@transpac.com 2014-01-24 21:05:46 +00:00
parent aa4d410223
commit dc8f241782

View File

@ -88,17 +88,15 @@ public class EffectiveTldFinderTest {
assertTrue(etld.isException());
assertFalse(etld.isWild());
assertEquals("parliament.uk", etld.getDomain());
// domains can be assigned under hokkaido.jp except for a
// a prescribed set of prefects (I think)
etld = EffectiveTldFinder.getEffectiveTLD("hokkaido.jp");
assertFalse(etld.isException());
assertTrue(etld.isWild());
assertFalse(etld.isWild());
assertEquals("hokkaido.jp", etld.getDomain());
// test a Japanese prefect
etld = EffectiveTldFinder.getEffectiveTLD("www.pref.hokkaido.jp");
// test a Japanese city
etld = EffectiveTldFinder.getEffectiveTLD("www.city.kawasaki.jp");
assertTrue(etld.isException());
assertFalse(etld.isWild());
assertEquals("pref.hokkaido.jp", etld.getDomain());
assertEquals("city.kawasaki.jp", etld.getDomain());
}
@Test