Revision 54978
Added by Alessia Bardi about 5 years ago
XsltRowTransformerFactoryTest.java | ||
---|---|---|
438 | 438 |
} |
439 | 439 |
|
440 | 440 |
@Test |
441 |
public void testParsePubFromODF() throws Exception { |
|
442 |
final List<Row> rows = Lists.newArrayList(); |
|
443 |
rows.addAll(asRows(loadFromTransformationProfile("odf2hbase.xml"), load("recordODFPub.xml"))); |
|
444 |
printAll(mapAll(buildTable(rows))); |
|
445 |
} |
|
446 |
|
|
447 |
@Test |
|
441 | 448 |
public void testParseSoftwareFromOAFOpen() throws Exception { |
442 | 449 |
final List<Row> rows = Lists.newArrayList(); |
443 | 450 |
rows.addAll(asRows(loadFromTransformationProfile("oaf2hbase.xml"), load("recordOAFsoftwareOPEN.xml"))); |
... | ... | |
520 | 527 |
}); |
521 | 528 |
} |
522 | 529 |
|
530 |
@Test |
|
531 |
public void testParseCrisPub() throws Exception { |
|
532 |
doTest(loadFromTransformationProfile("odf2hbase.xml"), load("cris_pub1.xml")); |
|
533 |
} |
|
534 |
|
|
523 | 535 |
private void doTest(final InputStream xsltStream, final InputStream recordStream) throws Exception { |
524 | 536 |
try { |
525 | 537 |
final List<Row> rows = asRows(xsltStream, recordStream); |
Also available in: Unified diff
Tests for CRIS and oaf:journal refactoring