use of net.geoprism.registry.model.Classification in project geoprism-registry by terraframe.
the class ListTypeTest method setUpInReq.
@Request
private static void setUpInReq() {
type = ClassificationType.apply(ClassificationTypeTest.createMock());
Classification root = Classification.newInstance(type);
root.setCode(CODE);
root.setDisplayLabel(new LocalizedValue("Test Classification"));
root.apply(null);
testClassification = (AttributeClassificationType) AttributeType.factory("testClassification", new LocalizedValue("testClassificationLocalName"), new LocalizedValue("testClassificationLocalDescrip"), AttributeClassificationType.TYPE, false, false, false);
testClassification.setClassificationType(type.getCode());
testClassification.setRootTerm(root.toTerm());
ServerGeoObjectType got = ServerGeoObjectType.get(USATestData.STATE.getCode());
testClassification = (AttributeClassificationType) got.createAttributeType(testClassification.toJSON().toString());
testTerm = (AttributeTermType) AttributeType.factory("testTerm", new LocalizedValue("testTermLocalName"), new LocalizedValue("testTermLocalDescrip"), AttributeTermType.TYPE, false, false, false);
testTerm = (AttributeTermType) got.createAttributeType(testTerm.toJSON().toString());
USATestData.COLORADO.setDefaultValue(testClassification.getName(), CODE);
}
use of net.geoprism.registry.model.Classification in project geoprism-registry by terraframe.
the class XMLImporterTest method classSetUp.
@Request
@BeforeClass
public static void classSetUp() {
type = ClassificationType.apply(ClassificationTypeTest.createMock());
Classification root = Classification.newInstance(type);
root.setCode(ROOT_CODE);
root.setDisplayLabel(new LocalizedValue("Test Classification"));
root.apply(null);
}
Aggregations