Search in sources :

Example 1 with IsrAttributes

use of org.codice.alliance.catalog.core.api.impl.types.IsrAttributes 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();
}
Also used : ContactAttributes(ddf.catalog.data.impl.types.ContactAttributes) LocationAttributes(ddf.catalog.data.impl.types.LocationAttributes) GregorianCalendar(java.util.GregorianCalendar) ArrayList(java.util.ArrayList) MetacardTypeImpl(ddf.catalog.data.impl.MetacardTypeImpl) MetacardType(ddf.catalog.data.MetacardType) SecurityAttributes(org.codice.alliance.catalog.core.api.impl.types.SecurityAttributes) ResultDAGConverter(org.codice.alliance.nsili.common.ResultDAGConverter) DateTimeAttributes(ddf.catalog.data.impl.types.DateTimeAttributes) AssociationsAttributes(ddf.catalog.data.impl.types.AssociationsAttributes) IsrAttributes(org.codice.alliance.catalog.core.api.impl.types.IsrAttributes) Before(org.junit.Before)

Aggregations

MetacardType (ddf.catalog.data.MetacardType)1 MetacardTypeImpl (ddf.catalog.data.impl.MetacardTypeImpl)1 AssociationsAttributes (ddf.catalog.data.impl.types.AssociationsAttributes)1 ContactAttributes (ddf.catalog.data.impl.types.ContactAttributes)1 DateTimeAttributes (ddf.catalog.data.impl.types.DateTimeAttributes)1 LocationAttributes (ddf.catalog.data.impl.types.LocationAttributes)1 ArrayList (java.util.ArrayList)1 GregorianCalendar (java.util.GregorianCalendar)1 IsrAttributes (org.codice.alliance.catalog.core.api.impl.types.IsrAttributes)1 SecurityAttributes (org.codice.alliance.catalog.core.api.impl.types.SecurityAttributes)1 ResultDAGConverter (org.codice.alliance.nsili.common.ResultDAGConverter)1 Before (org.junit.Before)1