Revision 52998
Added by Claudio Atzori over 5 years ago
ConfigTest.java | ||
---|---|---|
3 | 3 |
import java.io.IOException; |
4 | 4 |
|
5 | 5 |
import eu.dnetlib.pace.AbstractPaceTest; |
6 |
import eu.dnetlib.pace.model.MapDocument; |
|
7 |
import eu.dnetlib.pace.model.MapDocumentSerializer; |
|
8 |
import org.apache.commons.io.IOUtils; |
|
6 | 9 |
import org.junit.Test; |
7 | 10 |
|
8 | 11 |
import static org.junit.Assert.assertNotNull; |
... | ... | |
27 | 30 |
System.out.println(cfg.toString()); |
28 | 31 |
} |
29 | 32 |
|
33 |
@Test |
|
34 |
public void test3() throws IOException { |
|
35 |
|
|
36 |
final MapDocument docA = MapDocumentSerializer.decode(IOUtils.toString(getClass().getResourceAsStream("docA.json"))); |
|
37 |
System.out.println(docA); |
|
38 |
|
|
39 |
final MapDocument docB = MapDocumentSerializer.decode(IOUtils.toString(getClass().getResourceAsStream("docB.json"))); |
|
40 |
System.out.println(docB); |
|
41 |
|
|
42 |
} |
|
43 |
|
|
44 |
|
|
30 | 45 |
} |
Also available in: Unified diff
added more test cases