Examples of ReadFilter


Examples of org.jboss.aerogear.android.ReadFilter

        assertEquals("", filter.getQuery());
    }

    @Test
    public void testFilterQueryBuilder() throws JSONException {
        ReadFilter filter = new ReadFilter();
        filter.setLimit(1);
        assertEquals("?limit=1", filter.getQuery());

        filter.setOffset(2);
        assertEquals("?limit=1&offset=2", filter.getQuery());

        filter.setWhere(new JSONObject("{\"model\":\"BMW\"}"));
        assertEquals("?limit=1&offset=2&model=BMW", filter.getQuery());

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.