Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.IntegrationEntityMapLookup.addItem()


        addProjectListener(new EntitiesDeletedHandler());
    }

    private IntegrationEntityMapLookup createEmptyLookup() {
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(this);
        return lookup;
    }

    private void addRootFolders() {
        for (EntityType type : getRootFolderTypes()) {
View Full Code Here


    }

    private static IntegrationEntityMapLookup createDataStore(Collection<IntegrationEntity> entities) {
        IntegrationEntityMapLookup ds = new IntegrationEntityMapLookup();
        for (IntegrationEntity e : entities) {
            ds.addItem(e);
        }
        return ds;
    }

View Full Code Here

    @Test
    public void ensureGetAllIdsFromTransformationWorks() {
        Transformation tf = new Transformation("Test");
        tf.setMapList(Arrays.asList("A\t" + ScriptConstants.wrapInTags(expression + ";1")));
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(tf);
        verifyAllIdsWereDetected(GrammarUtils.getAllIdsFromTransformation(lookup, tf.getID()));
    }

    @Test
    public void ensureGetIdsFromTransformationWorks() {
View Full Code Here

    @Test
    public void ensureGetIdsFromTransformationWorks() {
        Transformation tf = new Transformation("Test");
        tf.setMapList(Arrays.asList("A\t" + ScriptConstants.wrapInTags(expression + ";1")));
        IntegrationEntityMapLookup lookup = new IntegrationEntityMapLookup();
        lookup.addItem(tf);
        Set<SourceId> readFileIds = GrammarUtils.getIdsFromTransformation(lookup, tf.getID(), "ReadFile(", SourceId.class);
        assertEquals(1, readFileIds.size());
        assertTrue(readFileIds.contains(sourceId));
    }
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.