Package com.asakusafw.testdriver.core

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


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

View Full Code Here


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

    /**
 
View Full Code Here

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

    /**
     * {@link DataModelCondition} - ignore unexpected.
View Full Code Here

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

    /**
     * {@link DataModelCondition} - ignore unexpected.
     * @throws Exception if occur
View Full Code Here

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

View Full Code Here

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

    /**
 
View Full Code Here

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

    /**
     * {@link DataModelCondition} - intersect.
View Full Code Here

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

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

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

View Full Code Here

     */
    @Test
    public void intersect() throws Exception {
        VerifyRule rule = rule("verify/intersect.xls");
        assertThat(rule.verify(obj(1, "a"), obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), obj(1, "b")), not(nullValue()));
        assertThat(rule.verify(null, obj(1, "a")), is(nullValue()));
        assertThat(rule.verify(obj(1, "a"), null), is(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.