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

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


        validator.validate(rels);
    }

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

    @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

    @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

    @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

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

    private RelationsValidator validatorFor(DatabaseObject... tables) {
        return new RelationsValidator(tables);
    }
View Full Code Here

TOP

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

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.