Package org.jitterbit.integration.client.ui.structure.editor.db.rels

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


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

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


    }

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

    @Test(expected=IllegalRelationException.class)
    public void testMissingLinkKeys() {
        TableRelationship r = orderToOrderDetails();
View Full Code Here

    public void testMissingLinkKeys() {
        TableRelationship r = orderToOrderDetails();
        r.setFieldRelationships(new ArrayList<FieldRelationship>());
        rels.add(r);
        RelationsValidator validator = validatorFor(ordersTab, orderDetailsTab);
        validator.validate(rels);
    }

    @Test(expected=IllegalRelationException.class)
    public void testMultipleRoots() {
        rels.add(orderToOrderLog());
View Full Code Here

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

    @Test(expected=IllegalRelationException.class)
    public void testMissingTable() {
        rels.add(orderToOrderDetails());
View Full Code Here

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

    private TableRelationship orderToOrderDetails() {
        TableRelationship r = new TableRelationship(ordersTab, orderDetailsTab);
        r.addFieldRelationship(ordersTab.getColumn("OrderId"), orderDetailsTab.getColumn("OrderId"));
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.