Package org.pirkaengine.core

Examples of org.pirkaengine.core.Item


    }

    @Test
    public void evalBoolean_objectField_true() {
        HashMap<String, Object> model = new HashMap<String, Object>();
        Item item = new Item();
        item.sale = true;
        model.put("foo", item);
        assertThat(target.evalBoolean("foo.sale", model), is(true));
    }
View Full Code Here


    }

    @Test
    public void evalBoolean_objectField_false() {
        HashMap<String, Object> model = new HashMap<String, Object>();
        Item item = new Item();
        item.sale = false;
        model.put("foo", item);
        assertThat(target.evalBoolean("foo.sale", model), is(false));
    }
View Full Code Here

    @Test
    public void evalBoolean_equals_obj_true() {
        HashMap<String, Object> model = new HashMap<String, Object>();
        model.put("name", "Hello");
        Item item = new Item();
        item.name = "Hello";
        model.put("item", item);
        assertThat(target.evalBoolean("name==item.name", model), is(true));
    }
View Full Code Here

    @Test
    public void evalBoolean_equals_obj_false() {
        HashMap<String, Object> model = new HashMap<String, Object>();
        model.put("name", "Hello");
        Item item = new Item();
        item.name = "HELLO";
        model.put("item", item);
        assertThat(target.evalBoolean("name==item.name", model), is(false));
    }
View Full Code Here

    @Test
    public void evalBoolean_notequals_obj_false() {
        HashMap<String, Object> model = new HashMap<String, Object>();
        model.put("name", "Hello");
        Item item = new Item();
        item.name = "Hello";
        model.put("item", item);
        Assert.assertEquals(false, target.evalBoolean("name!=item.name", model));
    }
View Full Code Here

    @Test
    public void evalBoolean_notequals_obj_true() {
        HashMap<String, Object> model = new HashMap<String, Object>();
        model.put("name", "Hello");
        Item item = new Item();
        item.name = "HELLO";
        model.put("item", item);
        Assert.assertEquals(true, target.evalBoolean("name!=item.name", model));
    }
View Full Code Here

TOP

Related Classes of org.pirkaengine.core.Item

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.