"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/unsupported/mbstyle/src/test/java/org/geotools/mbstyle/parse/MBFilterTest.java" between
geotools-21.1-project.zip and geotools-21.2-project.zip

About: GeoTools (The Open Source Java GIS Toolkit) is a Java code library which provides standards compliant methods for the manipulation of geospatial data.

MBFilterTest.java  (geotools-21.1-project):MBFilterTest.java  (geotools-21.2-project)
skipping to change at line 163 skipping to change at line 163
filter = mbfilter.filter(); filter = mbfilter.filter();
assertEquals("NOT (IN ('foo.1','foo.2'))", ECQL.toCQL(filter)); assertEquals("NOT (IN ('foo.1','foo.2'))", ECQL.toCQL(filter));
} }
@Test @Test
public void existential() throws ParseException { public void existential() throws ParseException {
JSONArray json = array("['has', 'key']"); JSONArray json = array("['has', 'key']");
MBFilter mbfilter = new MBFilter(json); MBFilter mbfilter = new MBFilter(json);
Filter filter = mbfilter.filter(); Filter filter = mbfilter.filter();
assertEquals("key IS NULL", ECQL.toCQL(filter)); assertEquals("NOT (key IS NULL)", ECQL.toCQL(filter));
json = array("['!has', 'key', 'value']"); json = array("['!has', 'key', 'value']");
mbfilter = new MBFilter(json); mbfilter = new MBFilter(json);
filter = mbfilter.filter(); filter = mbfilter.filter();
assertEquals("NOT (key IS NULL)", ECQL.toCQL(filter)); assertEquals("key IS NULL", ECQL.toCQL(filter));
} }
@Test @Test
public void comparisonFilters() throws ParseException { public void comparisonFilters() throws ParseException {
JSONArray json; JSONArray json;
MBFilter mbfilter; MBFilter mbfilter;
// being really quick here, no need to check null / instanceof if we jus t cast // being really quick here, no need to check null / instanceof if we jus t cast
json = array("['==', 'key', 'value']"); json = array("['==', 'key', 'value']");
mbfilter = new MBFilter(json); mbfilter = new MBFilter(json);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)