Search in sources :

Example 1 with ServerLookupRestriction

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);
}
Also used : ServerGeoObjectIF(net.geoprism.registry.model.ServerGeoObjectIF) ServerGeoObjectType(net.geoprism.registry.model.ServerGeoObjectType) ServerLookupRestriction(net.geoprism.registry.query.ServerLookupRestriction) VertexGeoObjectQuery(net.geoprism.registry.query.graph.VertexGeoObjectQuery) Test(org.junit.Test) Request(com.runwaysdk.session.Request)

Aggregations

Request (com.runwaysdk.session.Request)1 ServerGeoObjectIF (net.geoprism.registry.model.ServerGeoObjectIF)1 ServerGeoObjectType (net.geoprism.registry.model.ServerGeoObjectType)1 ServerLookupRestriction (net.geoprism.registry.query.ServerLookupRestriction)1 VertexGeoObjectQuery (net.geoprism.registry.query.graph.VertexGeoObjectQuery)1 Test (org.junit.Test)1