I like test driven development and automatic testing, so also for my XSLT code. I wanted to do this also within Oracle SOA Suite. Unfortunately this comes not out-of-the-box from the SOA Suite, so i searched the Net. Eventually i came to XMLUnit 1.2, whcih is an extension of JUnit (version 3.8.2). This framework contains some extension functions especially for XML, like transformations. Configuration First you have to configure XMLUnit to use the Oracle XSLT classes: System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "oracle.xml.jaxp.JXDocumentBuilderFactory"); System.setProperty("javax.xml.parsers.SAXParserFactory", "oracle.xml.jaxp.JXSAXParserFactory"); System.setProperty("javax.xml.transform.TransformerFactory", "oracle.xml.jaxp.JXSAXTransformerFactory"); Implementing a test case Extend from XMLTestCase: public class MyTestCase extends XMLTestCase Configure namespaces (this can be done within the setup() method...
Persoonlijk blog over mijn (werk)ervaringen. Ik ben nieuwsgierig en vind veel dingen interessant en leuk. Daarom ook verschillende hobbies zoals lezen, psychologie, filosofie, cryptos, fotografie, meditatie, tennis, PSV, wandelen, bier, wijn, gezin. Zie ook https://linktr.ee/rvdkimmenade Veel plezier met lezen!