Revision 47609
Added by Claudio Atzori almost 7 years ago
ActionFactoryTest.java | ||
---|---|---|
33 | 33 |
private final static Agent agent = new Agent("agentId", "agentName", AGENT_TYPE.algo); |
34 | 34 |
private final static String trust = "0.9"; |
35 | 35 |
private final InputStream recordDataciteInputStream = getClass().getResourceAsStream("recordDatacite.xml"); |
36 |
private final InputStream recordDatacite2InputStream = getClass().getResourceAsStream("recordDatacite2.xml"); |
|
36 | 37 |
private final InputStream recordOafInputStream = getClass().getResourceAsStream("record.xml"); |
37 | 38 |
@Resource |
38 | 39 |
private ActionFactory actionFactory; |
... | ... | |
60 | 61 |
} |
61 | 62 |
|
62 | 63 |
@Test |
64 |
public void testDatacite2Insert() throws ActionManagerException, IOException, TransformerException, DocumentException { |
|
65 |
|
|
66 |
XsltInfoPackageAction action = |
|
67 |
actionFactory.generateInfoPackageAction("datacite2insertActions", "rawSet", agent, Operation.INSERT, asString(recordDatacite2InputStream), |
|
68 |
Provenance.sysimport_crosswalk_datasetarchive, trust); |
|
69 |
|
|
70 |
checkActions(action, action.asAtomicActions()); |
|
71 |
} |
|
72 |
|
|
73 |
@Test |
|
63 | 74 |
public void testRecordOafInsert() throws ActionManagerException, IOException, TransformerException, DocumentException { |
64 | 75 |
|
65 | 76 |
XsltInfoPackageAction action = |
Also available in: Unified diff
hotfix: depending on latest dnet-openaireplus-mapping-utils. Pick only first nameIdentifier form person entities