@Test public void testCorrectCountryCodeWith32bitSID1() throws ResolutionException { List<Result> expectedResult = new ArrayList<Result>(); expectedResult.add(new Result("C", "E1", "GB")); Resolver resolver = new Resolver(); resolver.setDabSId("E1C00098"); List<Result> actualResult = resolver.resolveGCC(); assertEquals("GB + C479 must return one result of ce1", expectedResult, actualResult); }
@Test public void testECCWithSID1() throws ResolutionException { List<Result> expectedResult = new ArrayList<Result>(); expectedResult.add(new Result("D", "E0", "DE")); Resolver resolver = new Resolver(); resolver.setExtendedCountryCode("E0"); resolver.setDabSId("D479"); List<Result> actualResult = resolver.resolveGCC(); assertEquals("E0 + D479 must return one result of de0", expectedResult, actualResult); }