use of com.thoughtworks.studios.shine.semweb.grddl.XSLTTransformerRegistry in project gocd by gocd.
the class NUnitRDFizerTest method setup.
@Before
public void setup() {
XSLTTransformerRegistry transformerRegistry = new XSLTTransformerRegistry();
AntJUnitReportRDFizer jUnitRDFizer = new AntJUnitReportRDFizer(new InMemoryTempGraphFactory(), transformerRegistry);
nUnitRDFizer = new NUnitRDFizer(jUnitRDFizer, transformerRegistry);
}
use of com.thoughtworks.studios.shine.semweb.grddl.XSLTTransformerRegistry in project gocd by gocd.
the class JobResourceImporterTest method setup.
@Before
public void setup() {
transformerRegistry = new XSLTTransformerRegistry();
baseUri = "https://localhost:8154/go";
xmlApiService = mock(XmlApiService.class);
}
use of com.thoughtworks.studios.shine.semweb.grddl.XSLTTransformerRegistry in project gocd by gocd.
the class LazyStageGraphLoaderTest method shouldReuseTransformerAcrossSerialInvocations.
@Test
public void shouldReuseTransformerAcrossSerialInvocations() {
StageIdentifier stageId = new StageIdentifier("pipeline-foo", 23, "stage-1", "1");
DummyStageResourceImporter realLoader = new DummyStageResourceImporter(realGraph(), stageId, new Semaphore(2));
LazyStageGraphLoader loader = new LazyStageGraphLoader(realLoader, stageStorage);
loader.load(stageId);
XSLTTransformerRegistry transformerRegistryFromFirstLoad = realLoader.transformerRegistry;
stageStorage.clear();
loader.load(stageId);
XSLTTransformerRegistry transformerRegistryFromSecondLoad = realLoader.transformerRegistry;
assertThat(transformerRegistryFromFirstLoad, sameInstance(transformerRegistryFromSecondLoad));
}
Aggregations