more tests
This commit is contained in:
parent
04848c1876
commit
5f712d09b1
|
@ -106,6 +106,17 @@ public class ParseRDFJsonTest {
|
|||
System.out.println(mng.next());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testParseThanados() throws ParseException {
|
||||
String recordJson = getFromClasspath("eu/dnetlib/ariadneplus/reader/json/test-thanados.json");
|
||||
parser.setCollection(true);
|
||||
int res = parser.parse(recordJson);
|
||||
Assert.assertNotEquals(-1, res);
|
||||
while(parser.hasNextElement()){
|
||||
System.out.println(parser.getNextElement());
|
||||
}
|
||||
}
|
||||
|
||||
private String getFromClasspath(String s) {
|
||||
try {
|
||||
final ClassPathResource resource = new ClassPathResource(s);
|
||||
|
|
Loading…
Reference in New Issue