Package com.asakusafw.testdriver.core

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


        calendar.set(2011, 2, 31, 23, 30, 00);
        assertThat(rule.verify(obj(0, ""), datetime(calendar)), is(nullValue()));
        calendar.set(2011, 2, 31, 23, 30, 01);
        assertThat(rule.verify(obj(0, ""), datetime(calendar)), not(nullValue()));
        calendar.set(2011, 2, 31, 23, 45, 00);
        assertThat(rule.verify(obj(0, ""), datetime(calendar)), not(nullValue()));
    }

    /**
     * {@link ValueConditionKind} - now for not a datetime property.
     * @throws Exception if occur
View Full Code Here


    public void value_expr() throws Exception {
        ExcelSheetRuleProvider provider = new ExcelSheetRuleProvider();
        VerifyRule rule = provider.get(SIMPLE, context(10), uri("verify/value_approx.xls", ":0"));
        assertThat(rule, not(nullValue()));

        assertThat(rule.verify(num(1, 1.0), num(1, 1.0)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.49)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.51)), is(notNullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.51)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.49)), is(notNullValue()));
    }
View Full Code Here

        ExcelSheetRuleProvider provider = new ExcelSheetRuleProvider();
        VerifyRule rule = provider.get(SIMPLE, context(10), uri("verify/value_approx.xls", ":0"));
        assertThat(rule, not(nullValue()));

        assertThat(rule.verify(num(1, 1.0), num(1, 1.0)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.49)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.51)), is(notNullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.51)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.49)), is(notNullValue()));
    }
View Full Code Here

        VerifyRule rule = provider.get(SIMPLE, context(10), uri("verify/value_approx.xls", ":0"));
        assertThat(rule, not(nullValue()));

        assertThat(rule.verify(num(1, 1.0), num(1, 1.0)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.49)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.51)), is(notNullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.51)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.49)), is(notNullValue()));
    }

    /**
 
View Full Code Here

        assertThat(rule, not(nullValue()));

        assertThat(rule.verify(num(1, 1.0), num(1, 1.0)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.49)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.51)), is(notNullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.51)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.49)), is(notNullValue()));
    }

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

        assertThat(rule.verify(num(1, 1.0), num(1, 1.0)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.49)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 1.51)), is(notNullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.51)), is(nullValue()));
        assertThat(rule.verify(num(1, 1.0), num(1, 0.49)), is(notNullValue()));
    }

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

     * @throws Exception if occur
     */
    @Test
    public void nullity_normal() throws Exception {
        VerifyRule rule = rule("verify/nullity_normal.xls");
        assertThat(rule.verify(obj(0, "a"), obj(0, "a")), is(nullValue()));
        assertThat(rule.verify(obj(null, "a"), obj(null, "a")), is(nullValue()));
        assertThat(rule.verify(obj(0, null), obj(0, null)), is(nullValue()));
        assertThat(rule.verify(obj(0, "a"), obj(null, "a")), not(nullValue()));
        assertThat(rule.verify(obj(0, "a"), obj(0, null)), is(nullValue()));
    }
View Full Code Here

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

View Full Code Here

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

    /**
 
View Full Code Here

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

    /**
     * {@link NullityConditionKind} - accept absent.
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.