Package com.asakusafw.testdriver.core

Examples of com.asakusafw.testdriver.core.VerifyRule.verify()


     */
    @Test
    public void value_any() throws Exception {
        VerifyRule rule = rule("verify/value_any.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(null, null)), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

View Full Code Here


    @Test
    public void value_any() throws Exception {
        VerifyRule rule = rule("verify/value_any.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(null, null)), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

    /**
 
View Full Code Here

    public void value_any() throws Exception {
        VerifyRule rule = rule("verify/value_any.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(null, null)), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

    /**
     * {@link ValueConditionKind} - keys.
View Full Code Here

        VerifyRule rule = rule("verify/value_any.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(null, null)), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

    /**
     * {@link ValueConditionKind} - keys.
     * @throws Exception if occur
View Full Code Here

        assertThat(rule.getKey(obj(1, "a")), equalTo(rule.getKey(obj(1, "a"))));
        assertThat(rule.getKey(obj(2, "b")), equalTo(rule.getKey(obj(2, "b"))));
        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(2, "a")))));
        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(1, "b")))));

        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }
View Full Code Here

        assertThat(rule.getKey(obj(2, "b")), equalTo(rule.getKey(obj(2, "b"))));
        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(2, "a")))));
        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(1, "b")))));

        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

    /**
 
View Full Code Here

        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(2, "a")))));
        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(1, "b")))));

        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

    /**
     * {@link ValueConditionKind} - equals.
View Full Code Here

        assertThat(rule.getKey(obj(1, "a")), not(equalTo(rule.getKey(obj(1, "b")))));

        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), not(nullValue()));
    }

    /**
     * {@link ValueConditionKind} - equals.
     * @throws Exception if occur
View Full Code Here

     * @throws Exception if occur
     */
    @Test
    public void value_equal() throws Exception {
        VerifyRule rule = rule("verify/value_equal.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(2, "b"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(1, "b")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "a")), not(nullValue()));
    }

View Full Code Here

     */
    @Test
    public void value_equal() throws Exception {
        VerifyRule rule = rule("verify/value_equal.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(2, "b"), obj(2, "b")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(1, "b")), not(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(2, "a")), not(nullValue()));
    }

    /**
 
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.