Package org.opengis.filter

Examples of org.opengis.filter.PropertyIsNotEqualTo


    }

    public void testPropertyIsNotEqualToParse() throws Exception {
        FilterMockData.propertyIsNotEqualTo(document, document);

        PropertyIsNotEqualTo equalTo = (PropertyIsNotEqualTo) parse();
        assertNotNull(equalTo);

        assertNotNull(equalTo.getExpression1());
        assertNotNull(equalTo.getExpression2());
    }
View Full Code Here


        assertNotNull(equalTo.getExpression1());
        assertNotNull(equalTo.getExpression2());
    }

    public void testPropertyIsNotEqualToEncode() throws Exception {
        PropertyIsNotEqualTo equalTo = FilterMockData.propertyIsNotEqualTo();

        Document dom = encode(equalTo, OGC.PropertyIsNotEqualTo);
        assertEquals(1,
            dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()).getLength());
        assertEquals(1,
View Full Code Here

    }

    public void testPropertyIsNotEqualToParse() throws Exception {
        FilterMockData.propertyIsNotEqualTo(document, document);

        PropertyIsNotEqualTo equalTo = (PropertyIsNotEqualTo) parse();
        assertNotNull(equalTo);

        assertNotNull(equalTo.getExpression1());
        assertNotNull(equalTo.getExpression2());
    }
View Full Code Here

        assertNotNull(equalTo.getExpression1());
        assertNotNull(equalTo.getExpression2());
    }

    public void testPropertyIsNotEqualToEncode() throws Exception {
        PropertyIsNotEqualTo equalTo = FilterMockData.propertyIsNotEqualTo();

        Document dom = encode(equalTo, OGC.PropertyIsNotEqualTo);
        assertEquals(1,
            dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()).getLength());
        assertEquals(1,
View Full Code Here

 
  public void testOperandsSameType() {
    Expression e1 = filterFactory.literal( 1 );
    Expression e2 = filterFactory.literal( 2 );
   
    PropertyIsNotEqualTo notEqual = filterFactory.notEqual( e1, e2, true );
    assertTrue( notEqual.evaluate( null ) );
  }
View Full Code Here

  public void testOperandsDifferentType() {
    Expression e1 = filterFactory.literal( 1 );
    Expression e2 = filterFactory.literal( "2"
        );
   
    PropertyIsNotEqualTo notEqual = filterFactory.notEqual( e1, e2, true );
    assertTrue( notEqual.evaluate( null ) );
  }
View Full Code Here

 
  public void testOperandsIntDouble() {
        Expression e1 = filterFactory.literal( 1 );
        Expression e2 = filterFactory.literal( "1.0" );
       
        PropertyIsNotEqualTo notEqual = filterFactory.notEqual( e1, e2, true );
        assertFalse( notEqual.evaluate( null ) );
    }
View Full Code Here

 
  public void testCaseSensitivity() {
    Expression e1 = filterFactory.literal( "foo" );
    Expression e2 = filterFactory.literal( "FoO" );
   
    PropertyIsNotEqualTo caseSensitive = filterFactory.notEqual( e1, e2, true );
    assertTrue( caseSensitive. evaluate( null ) );
   
    PropertyIsNotEqualTo caseInsensitive = filterFactory.notEqual( e1, e2, false );
    assertFalse( caseInsensitive. evaluate( null ) );
   
  }
View Full Code Here

    }

    public void testCountWithIsNotEqualFilter() throws Exception {
        init();
        FilterFactory ff = dataStore.getFilterFactory();
        PropertyIsNotEqualTo filter = ff.notEqual(ff.property("vendor_s"), ff.literal("D-Link"));
        Query query = new Query();
        query.setFilter(filter);
        assertEquals(7, featureSource.getCount(query));
    }
View Full Code Here

        assertTrue(fids.contains("FID.2"));
        assertTrue(fids.contains("FID.1"));
    }
   
    public void testNotEqual() throws Exception {
        PropertyIsNotEqualTo filter = (PropertyIsNotEqualTo) parseDocumentFirst("testNotEqual.xml");
       
        assertTrue(filter.isMatchingCase());
    }
View Full Code Here

TOP

Related Classes of org.opengis.filter.PropertyIsNotEqualTo

Copyright © 2018 www.massapicom. 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.