use of net.geoprism.registry.query.ServerLookupRestriction in project geoprism-registry by terraframe.
the class GeoObjectQueryTest method testFailLookupRestriction.
@Test
@Request
public void testFailLookupRestriction() {
ServerGeoObjectType type = USATestData.STATE.getServerObject();
ServerLookupRestriction restriction = new ServerLookupRestriction(USATestData.CANADA.getCode(), USATestData.CANADA.getDate());
VertexGeoObjectQuery query = new VertexGeoObjectQuery(type, null);
query.setRestriction(restriction);
ServerGeoObjectIF result = query.getSingleResult();
Assert.assertNull(result);
}
Aggregations