File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/test/java/com/mapcode Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 11/*
22 * Copyright (C) 2014 Stichting Mapcode Foundation (http://www.mapcode.com)
3- *
3+ *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
@@ -48,4 +48,13 @@ public void disambiguateMNTest2() throws Exception {
4848 LOG .info ("disambiguateMNTest2" );
4949 Territory .fromString ("MN" , ParentTerritory .RUS );
5050 }
51+
52+ @ Test
53+ public void territoryFromStringTest () throws Exception {
54+ LOG .info ("territoryFromStringTest" );
55+ assertEquals (Territory .NLD , Territory .fromString ("NLD" ));
56+ assertEquals (Territory .ARG , Territory .fromString ("ARG" ));
57+ assertEquals (Territory .ASM , Territory .fromString ("US-AS" ));
58+ assertEquals (Territory .ASM , Territory .fromString ("USA-AS" ));
59+ }
5160}
You can’t perform that action at this time.
0 commit comments