Package com.asakusafw.testdriver.core

Examples of com.asakusafw.testdriver.core.TestDataToolProvider


     * Returns the data model definition for this port.
     * @return the data model definition
     */
    public final DataModelDefinition<T> getDataModelDefinition() {
        try {
            TestDataToolProvider tools = getTestTools();
            return tools.toDataModelDefinition(modelType);
        } catch (IOException e) {
            throw new IllegalStateException(MessageFormat.format(
                    "Invalid data model type in \"{0}\": {1}",
                    name,
                    modelType.getName()), e);
View Full Code Here


     */
    protected final VerifyRuleFactory toVerifyRuleFactory(
            String rulePath,
            List<? extends ModelTester<? super T>> extraRules) {
        try {
            TestDataToolProvider tools = getTestTools();
            List<TestRule> fragments = new ArrayList<TestRule>();
            for (ModelTester<? super T> tester : extraRules) {
                fragments.add(tools.toVerifyRuleFragment(getDataModelDefinition(), tester));
            }
            return tools.getVerifyRuleFactory(toUri(rulePath), fragments);
        } catch (URISyntaxException e) {
            throw new IllegalStateException(MessageFormat.format(
                    "Invalid rule path: {0}",
                    rulePath), e);
        }
View Full Code Here

TOP

Related Classes of com.asakusafw.testdriver.core.TestDataToolProvider

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.