Search in sources :

Example 1 with GRDDLTransformer

use of com.thoughtworks.studios.shine.semweb.grddl.GRDDLTransformer in project gocd by gocd.

the class AntJUnitGRDDLTest method setUp.

@Before
public void setUp() throws Exception {
    InputStream xunitXMLStream = new ByteArrayInputStream(minimalXUnitXML.getBytes());
    XSLTTransformerRegistry xsltTransformerRegistry = new XSLTTransformerRegistry();
    transformer = new GRDDLTransformer(xsltTransformerRegistry, XSLTTransformerRegistry.XUNIT_ANT_JUNIT_GRDDL_XSL);
    minimalDataGraph = transformer.transform(xunitXMLStream, new InMemoryTempGraphFactory());
}
Also used : GRDDLTransformer(com.thoughtworks.studios.shine.semweb.grddl.GRDDLTransformer) ByteArrayInputStream(java.io.ByteArrayInputStream) ByteArrayInputStream(java.io.ByteArrayInputStream) InputStream(java.io.InputStream) XSLTTransformerRegistry(com.thoughtworks.studios.shine.semweb.grddl.XSLTTransformerRegistry) InMemoryTempGraphFactory(com.thoughtworks.studios.shine.semweb.sesame.InMemoryTempGraphFactory) Before(org.junit.Before)

Aggregations

GRDDLTransformer (com.thoughtworks.studios.shine.semweb.grddl.GRDDLTransformer)1 XSLTTransformerRegistry (com.thoughtworks.studios.shine.semweb.grddl.XSLTTransformerRegistry)1 InMemoryTempGraphFactory (com.thoughtworks.studios.shine.semweb.sesame.InMemoryTempGraphFactory)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 Before (org.junit.Before)1