Examples of VerifyRule


Examples of com.asakusafw.testdriver.core.VerifyRule

     * {@link NullityConditionKind} - deny present.
     * @throws Exception if occur
     */
    @Test
    public void nullity_DP() throws Exception {
        VerifyRule rule = rule("verify/nullity_DP.xls");
        assertThat(rule.verify(obj(0, "a"), obj(null, "a")), not(nullValue()));
        assertThat(rule.verify(obj(0, null), obj(null, "a")), not(nullValue()));
        assertThat(rule.verify(obj(0, "a"), obj(null, null)), is(nullValue()));
        assertThat(rule.verify(obj(0, null), obj(null, null)), is(nullValue()));

        assertThat(rule.verify(obj(0, null), obj(0, null)), not(nullValue()));
    }
View Full Code Here

Examples of com.asakusafw.testdriver.core.VerifyRule

     * {@link NullityConditionKind} - deny absent.
     * @throws Exception if occur
     */
    @Test
    public void nullity_DA() throws Exception {
        VerifyRule rule = rule("verify/nullity_DA.xls");
        assertThat(rule.verify(obj(0, "a"), obj(0, "a")), is(nullValue()));
        assertThat(rule.verify(obj(0, null), obj(0, "a")), is(nullValue()));
        assertThat(rule.verify(obj(0, "a"), obj(0, null)), not(nullValue()));
        assertThat(rule.verify(obj(0, null), obj(0, null)), not(nullValue()));

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

Examples of com.asakusafw.testdriver.core.VerifyRule

    }

    private VerifyRule rule(String name, VerifyContext context) throws Exception {
        assert name != null;
        ExcelSheetRuleProvider provider = new ExcelSheetRuleProvider();
        VerifyRule rule = provider.get(SIMPLE, context, uri(name, ":0"));
        assertThat(rule, not(nullValue()));
        return rule;
    }
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.