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, ""));
}
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();
}
Aggregations