Search in sources :

Example 1 with RegistryTransformer

use of org.codice.ddf.registry.transformer.RegistryTransformer in project ddf by codice.

the class IdentityNodeInitializationTest method setUp.

@Before
public void setUp() throws Exception {
    parser = spy(new XmlParser());
    identityNodeInitialization = spy(new IdentityNodeInitialization());
    registryTransformer = spy(new RegistryTransformer());
    metacardMarshaller = spy(new MetacardMarshaller(parser));
    registryTransformer.setParser(parser);
    registryTransformer.setRegistryMetacardType(new RegistryObjectMetacardType());
    identityNodeInitialization.setRegistryTransformer(registryTransformer);
    identityNodeInitialization.setMetacardMarshaller(metacardMarshaller);
    identityNodeInitialization.setFederationAdminService(federationAdminService);
    identityNodeInitialization.setExecutorService(executorService);
    System.setProperty(SystemInfo.SITE_NAME, TEST_SITE_NAME);
    System.setProperty(SystemInfo.VERSION, TEST_VERSION);
    testMetacard = getTestMetacard();
    testMetacard.setAttribute(new AttributeImpl(Metacard.METADATA, ""));
}
Also used : XmlParser(org.codice.ddf.parser.xml.XmlParser) RegistryTransformer(org.codice.ddf.registry.transformer.RegistryTransformer) MetacardMarshaller(org.codice.ddf.registry.schemabindings.helper.MetacardMarshaller) AttributeImpl(ddf.catalog.data.impl.AttributeImpl) RegistryObjectMetacardType(org.codice.ddf.registry.common.metacard.RegistryObjectMetacardType) Before(org.junit.Before)

Example 2 with RegistryTransformer

use of org.codice.ddf.registry.transformer.RegistryTransformer in project ddf by codice.

the class RegistryReportBuilderTest method setup.

@Before
public void setup() {
    parser = new XmlParser();
    registryTransformer = spy(new RegistryTransformer());
    registryTransformer.setParser(parser);
    registryTransformer.setRegistryMetacardType(new RegistryObjectMetacardType());
    configurator = parser.configureParser(Arrays.asList(RegistryObjectType.class.getPackage().getName(), EbrimConstants.OGC_FACTORY.getClass().getPackage().getName(), EbrimConstants.GML_FACTORY.getClass().getPackage().getName()), this.getClass().getClassLoader());
    reportHelper = new RegistryReportBuilder();
    reportHelper.setup();
}
Also used : XmlParser(org.codice.ddf.parser.xml.XmlParser) RegistryTransformer(org.codice.ddf.registry.transformer.RegistryTransformer) RegistryObjectMetacardType(org.codice.ddf.registry.common.metacard.RegistryObjectMetacardType) Before(org.junit.Before)

Aggregations

XmlParser (org.codice.ddf.parser.xml.XmlParser)2 RegistryObjectMetacardType (org.codice.ddf.registry.common.metacard.RegistryObjectMetacardType)2 RegistryTransformer (org.codice.ddf.registry.transformer.RegistryTransformer)2 Before (org.junit.Before)2 AttributeImpl (ddf.catalog.data.impl.AttributeImpl)1 MetacardMarshaller (org.codice.ddf.registry.schemabindings.helper.MetacardMarshaller)1