Revision 55047
Added by Miriam Baglioni about 5 years ago
modules/dnet-directindex-api/trunk/src/test/java/eu/dnetlib/msro/openaireplus/api/objects/ResultEntryTest.java | ||
---|---|---|
245 | 245 |
private void testAsIndexRecord_json(final String filename) throws Exception { |
246 | 246 |
final ResultEntry pub = |
247 | 247 |
new Gson().fromJson(new InputStreamReader(getClass().getResourceAsStream(filename)), ResultEntry.class); |
248 |
pub.filterContexts(); |
|
248 |
|
|
249 | 249 |
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd"); |
250 |
System.out.println(xml); |
|
250 |
//System.out.println(xml);
|
|
251 | 251 |
|
252 | 252 |
final Document doc = new SAXReader().read(new StringReader(xml)); |
253 | 253 |
|
modules/dnet-directindex-api/trunk/src/test/resources/eu/dnetlib/msro/openaireplus/api/objects/test_zenodo_community.json | ||
---|---|---|
1 | 1 |
{"authors": ["Dag Haug", "Marius J\xf8hndal"], |
2 | 2 |
"collectedFromId": "re3data_____::r3d100010468", |
3 |
"contexts": ["https://zenodo.org/communities/zenodo"], |
|
3 |
"contexts": ["https://zenodo.org/communities/zenodo","pippo"],
|
|
4 | 4 |
"description": "<p>Official releases of the PROIEL treebank of ancient Indo-European languages</p>", |
5 | 5 |
"hostedById": "re3data_____::r3d100010468", |
6 | 6 |
"licenseCode": "OPEN", |
Also available in: Unified diff
update test