more tests

This commit is contained in:
Alessia Bardi 2022-11-21 18:49:21 +01:00
parent 04848c1876
commit 5f712d09b1
1 changed files with 11 additions and 0 deletions

View File

@ -106,6 +106,17 @@ public class ParseRDFJsonTest {
System.out.println(mng.next()); 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) { private String getFromClasspath(String s) {
try { try {
final ClassPathResource resource = new ClassPathResource(s); final ClassPathResource resource = new ClassPathResource(s);