Java Code Examples for org.apache.cxf.jaxrs.ext.search.SearchCondition#getCondition()
The following examples show how to use
org.apache.cxf.jaxrs.ext.search.SearchCondition#getCondition() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FiqlParserTest.java From cxf with Apache License 2.0 | 5 votes |
@Test public void testMultipleLists() throws SearchParseException { FiqlParser<Job> jobParser = new FiqlParser<>(Job.class, Collections.<String, String>emptyMap(), Collections.singletonMap("itemName", "tasks.items.itemName")); SearchCondition<Job> jobCondition = jobParser.parse("itemName==myitem"); Job job = jobCondition.getCondition(); assertEquals("myitem", job.getTasks().get(0).getItems().get(0).getItemName()); }
Example 2
Source File: FiqlCollectionsTest.java From cxf with Apache License 2.0 | 5 votes |
@Test public void testWithCollectionAfterFirstLevelOnCollection() throws SearchParseException { FiqlParser<Place> placeParser = new FiqlParser<>(Place.class); SearchCondition<Place> placeCondition = placeParser .parse("specs.features.description==description"); Place place = placeCondition.getCondition(); assertNotNull(place); }
Example 3
Source File: FiqlCollectionsTest.java From cxf with Apache License 2.0 | 5 votes |
@Test public void testWithCollectionAfterFirstLevelOnSingleObject() throws SearchParseException { FiqlParser<Room> roomParser = new FiqlParser<>(Room.class); SearchCondition<Room> roomCondition = roomParser .parse("furniture.spec.features.description==description"); Room room = roomCondition.getCondition(); assertNotNull(room); }