use of ddf.catalog.transformer.xml.adapter.MetacardTypeAdapter in project ddf by codice.
the class TestMetacardTypeAdapter method testUnmarshalWithNullTypeName.
@Test
public void testUnmarshalWithNullTypeName() throws CatalogTransformerException {
MetacardTypeAdapter metacardTypeAdpater = new MetacardTypeAdapter();
MetacardType metacardType = metacardTypeAdpater.unmarshal(NULL_TYPE_NAME);
assertThat(metacardType.getName(), is(BasicTypes.BASIC_METACARD.getName()));
}
use of ddf.catalog.transformer.xml.adapter.MetacardTypeAdapter in project ddf by codice.
the class TestMetacardTypeAdapter method testUnmarshalWithEmptyRegisteredMetacardTypes.
@Test
public void testUnmarshalWithEmptyRegisteredMetacardTypes() throws CatalogTransformerException {
MetacardTypeAdapter metacardTypeAdpater = new MetacardTypeAdapter(EMPTY_METACARD_TYPES_LIST);
MetacardType metacardType = metacardTypeAdpater.unmarshal(UNKNOWN_TYPE_NAME);
assertThat(metacardType.getName(), is(BasicTypes.BASIC_METACARD.getName()));
}
Aggregations