use of ddf.catalog.data.impl.types.DateTimeAttributes in project alliance by codice.
the class DAGConverterTest method setUp.
@Before
public void setUp() throws Exception {
this.orb = ORB.init();
int year = 2016;
int month = 01;
int dayOfMonth = 29;
int hourOfDay = 17;
int minute = 05;
int second = 10;
cal = new GregorianCalendar(year, month, dayOfMonth, hourOfDay, minute, second);
dagConverter = new DAGConverter(mockResourceReader);
List<MetacardType> types = new ArrayList<>();
types.add(new AssociationsAttributes());
types.add(new ContactAttributes());
types.add(new DateTimeAttributes());
types.add(new LocationAttributes());
types.add(new IsrAttributes());
types.add(new SecurityAttributes());
MetacardTypeImpl metacardTypeImpl = new MetacardTypeImpl("NsiliMetacardType", types);
dagConverter.setNsiliMetacardType(metacardTypeImpl);
setupMocks();
}
use of ddf.catalog.data.impl.types.DateTimeAttributes in project ddf by codice.
the class RegistryTransformerTest method setUp.
@Before
public void setUp() {
registryTransformer = new RegistryTransformer();
parser = new XmlParser();
metacardTypes = new ArrayList<>();
metacardTypes.addAll(Arrays.asList(new RegistryObjectMetacardType(), new TopicAttributes(), new MediaAttributes(), new ContactAttributes(), new CoreAttributes(), new DateTimeAttributes()));
metacardType = new MetacardTypeImpl("registryMetacard", metacardTypes);
registryTransformer.setParser(parser);
registryTransformer.setRegistryMetacardType(metacardType);
System.setProperty(RegistryConstants.REGISTRY_ID_PROPERTY, "identityRegistryId");
}
Aggregations