Search in sources :

Example 11 with CQL2PgJSON

use of org.z3950.zing.cql.cql2pgjson.CQL2PgJSON in project raml-module-builder by folio-org.

the class CQLWrapperTest method invalidCQL.

@Test(expected = IllegalStateException.class)
public void invalidCQL() throws FieldException {
    CQLWrapper wrapper = new CQLWrapper().setField(new CQL2PgJSON("field")).setQuery("or name=miller");
    wrapper.toString();
}
Also used : CQL2PgJSON(org.z3950.zing.cql.cql2pgjson.CQL2PgJSON) CQLWrapper(org.folio.rest.persist.cql.CQLWrapper) Test(org.junit.Test)

Aggregations

CQLWrapper (org.folio.rest.persist.cql.CQLWrapper)11 CQL2PgJSON (org.z3950.zing.cql.cql2pgjson.CQL2PgJSON)11 Test (org.junit.Test)6 List (java.util.List)3 HoldingsRecord (org.folio.rest.jaxrs.model.HoldingsRecord)3 Limit (org.folio.rest.persist.Criteria.Limit)3 Offset (org.folio.rest.persist.Criteria.Offset)3 PostgresClient (org.folio.rest.persist.PostgresClient)3 Async (io.vertx.ext.unit.Async)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 HoldingsRecords (org.folio.rest.jaxrs.model.HoldingsRecords)1 SimplePojo (org.folio.rest.persist.helpers.SimplePojo)1 OutStream (org.folio.rest.tools.utils.OutStream)1 FieldException (org.z3950.zing.cql.cql2pgjson.FieldException)1