Examples of RelationsValidator


Examples of org.jitterbit.integration.client.ui.structure.editor.db.rels.RelationsValidator

    @Test
    public void testEverythingOk() {
        rels.add(orderToOrderDetails());
        rels.add(orderDetailsToProducts());
        rels.add(orderToOrderLog());
        RelationsValidator validator = validatorFor(ordersTab, orderDetailsTab, productsTab, orderLogTab);
        validator.validate(rels);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.rels.RelationsValidator

        validator.validate(rels);
    }

    @Test(expected=IllegalRelationException.class)
    public void testEmpty() {
        RelationsValidator validator = validatorFor(ordersTab, orderDetailsTab);
        validator.validate(rels);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.rels.RelationsValidator

    @Test(expected=IllegalRelationException.class)
    public void testMissingLinkKeys() {
        TableRelationship r = orderToOrderDetails();
        r.setFieldRelationships(new ArrayList<FieldRelationship>());
        rels.add(r);
        RelationsValidator validator = validatorFor(ordersTab, orderDetailsTab);
        validator.validate(rels);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.rels.RelationsValidator

    @Test(expected=IllegalRelationException.class)
    public void testMultipleRoots() {
        rels.add(orderToOrderLog());
        rels.add(orderDetailsToProducts());
        RelationsValidator validator = validatorFor(ordersTab, orderLogTab, orderDetailsTab, productsTab);
        validator.validate(rels);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.rels.RelationsValidator

    @Test(expected=IllegalRelationException.class)
    public void testMissingTable() {
        rels.add(orderToOrderDetails());
        rels.add(orderDetailsToProducts());
        RelationsValidator validator = validatorFor(ordersTab, orderLogTab, orderDetailsTab, productsTab);
        validator.validate(rels);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.rels.RelationsValidator

        r.addFieldRelationship(ordersTab.getColumn("OrderId"), orderDetailsTab.getColumn("OrderId"));
        return r;
    }

    private RelationsValidator validatorFor(DatabaseObject... tables) {
        return new RelationsValidator(tables);
    }
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.