Last change
on this file since 2768 was
2768,
checked in by keeloo, 11 years ago
|
Integrated parameter branche into trunk again
|
File size:
923 bytes
|
Line | |
---|
1 | package eu.clarin.cmdi.vlo.importer; |
---|
2 | |
---|
3 | import eu.clarin.cmdi.vlo.config.VloConfig; |
---|
4 | import static org.junit.Assert.assertEquals; |
---|
5 | import org.junit.Before; |
---|
6 | import org.junit.Test; |
---|
7 | |
---|
8 | public class CountryNamePostProcessorTest { |
---|
9 | |
---|
10 | @Before |
---|
11 | public void setUp() { |
---|
12 | |
---|
13 | // read the configuration from the packaged configuration file |
---|
14 | VloConfig.readPackagedConfig(); |
---|
15 | |
---|
16 | // optionally, modify the configuration here |
---|
17 | } |
---|
18 | |
---|
19 | @Test |
---|
20 | public void testCountryCode() { |
---|
21 | CountryNamePostProcessor processor = new CountryNamePostProcessor(); |
---|
22 | assertEquals("Netherlands", processor.process("NL")); |
---|
23 | assertEquals("United Kingdom", processor.process("GB")); |
---|
24 | assertEquals("Netherlands", processor.process("nl")); |
---|
25 | assertEquals("test", processor.process("test")); |
---|
26 | assertEquals("", processor.process("")); |
---|
27 | assertEquals(null, processor.process(null)); |
---|
28 | } |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.