Package com.vaadin.data.util.filter

Examples of com.vaadin.data.util.filter.Like.passesFilter()


        Like like = new Like("test", "%foo");

        Item item = new PropertysetItem();
        item.addItemProperty("test", new ObjectProperty<String>("foobar"));

        Assert.assertFalse(like.passesFilter("id", item));
    }

    @Test
    public void passesFilter_startsWithAndEndsWithOnMatchingValue_shouldSucceed() {
        Like like = new Like("test", "foo%bar");
View Full Code Here


        Like like = new Like("test", "foo%bar");

        Item item = new PropertysetItem();
        item.addItemProperty("test", new ObjectProperty<String>("fooASDFbar"));

        Assert.assertTrue(like.passesFilter("id", item));
    }

    @Test
    public void appliesToProperty_valueIsProperty_shouldBeTrue() {
        Like like = new Like("test", "%foo");
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.