Project

General

Profile

« Previous | Next » 

Revision 52422

more tests for Software and Orp entities

View differences:

XsltRowTransformerFactoryTest.java
36 36
public class XsltRowTransformerFactoryTest {
37 37

  
38 38
	private static final Log log = LogFactory.getLog(XsltRowTransformerFactoryTest.class);
39
	private static String basePathProfiles = "/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/";
39
	private static String basePathProfiles = "/eu/dnetlib/test/profiles/TransformationRuleDSResources/TransformationRuleDSResourceType/2hbase/";
40 40
	private XsltRowTransformerFactory factory;
41 41
	private EntityConfigTable entityConfigTable;
42 42

  
......
76 76
	}
77 77

  
78 78
	@Test
79
	public void testParseSoftwareEgiApp() throws Exception {
80

  
81
		doTest(loadFromTransformationProfile("odf2hbase.xml"), load("softwareEgiApp.xml"));
82
	}
83

  
84
	@Test
85
	public void testParseSoftwareEgiApp2() throws Exception {
86

  
87
		doTest(loadFromTransformationProfile("odf2hbase.xml"), load("softwareEgiApp2.xml"));
88
	}
89

  
90
	@Test
91
	public void testParseOrpEgiApp() throws Exception {
92

  
93
		doTest(loadFromTransformationProfile("odf2hbase.xml"), load("orpEgiApp.xml"));
94
	}
95

  
96
	@Test
79 97
	public void testParseDatasetLindat() throws Exception {
80 98

  
81 99
		doTest(loadFromTransformationProfile("odf2hbase.xml"), load("datasetLindat.xml"));
......
747 765
			throw new RuntimeException(e);
748 766
		}
749 767
		String xslt = doc.selectSingleNode("//SCRIPT/CODE/*[local-name()='stylesheet']").asXML();
768
		//log.info(xslt);
750 769
		return IOUtils.toInputStream(xslt);
751 770
	}
752 771

  

Also available in: Unified diff