Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.Source


    @Test
    public void ensureNonAutomaticDeployWorks() {
        BooleanPreference pref = createPreference(false);
        Redlight redlight = new Redlight();
        PreferenceCheckingDeployPrompt prompt = new PreferenceCheckingDeployPrompt(redlight, pref);
        List<Source> dirty = Arrays.asList(new Source("S"));
        assertFalse(prompt.prompt(null, dirty));
        redlight.ensureCalled();
        Greenlight greenlight = new Greenlight();
        prompt = new PreferenceCheckingDeployPrompt(greenlight, pref);
        assertTrue(prompt.prompt(null, dirty));
View Full Code Here


    private DatabaseStructureWizardPageChain createPages(TransformationWizard wizard, SourceTarget st) {
        Transformation tx = wizard.getTransformation();
        IntegrationEntityLookup lookup = wizard.getItemLookup();
        switch (st) {
        case Source:
            Source source = lookup.getEntity(tx.getSourceId(), Source.class);
            if (source != null) {
                return new DatabaseStructureWizardPageChain(wizard, source);
            }
            break;
        case Target:
View Full Code Here

            askForFileAndSubmit();
        }
    }

    public boolean isApplicableOperation() {
        Source source = getSource();
        if (source == null) {
            Alert.error("The operation does not have a source.", "No Source");
            return false;
        }
        DataLocation location = source.getLocation();
        if (!location.isFileBased()) {
            Alert.error("The operation source is not file based.", "Not File Based");
            return false;
        }
        return true;
View Full Code Here

*/
public final class SourceSearchValuesCollector implements SearchValuesCollector {

    @Override
    public List<String> getValues(IntegrationEntity object) {
        Source source = (Source) object;
        return LocationSearchValuesCollector.collect(source);
    }
View Full Code Here

        OperationPipeline restored = fromPersistor.restorePipeline(project.getItemLookup());
        assertEquals(op.getPipeline(), restored);
    }
   
    private Source createSource() {
        Source s = new Source("S");
        project.insertEntityUnderRoot(s);
        return s;
    }
View Full Code Here

    public void setup() {
        project = IntegrationProject.createNewProject("Test");
        op = new Operation("Op");
        op.setOperationType(TransformationOperationType.TYPE);
        project.insertEntityUnderRoot(op);
        source = new Source("Source");
        project.insertEntityUnderRoot(source);
        op.setSource(source);
    }
View Full Code Here

        validator.validate();
        collector.verify(expected);
    }

    private void setSource(DataLocationType type) {
        Source src = (type != null) ? createSource(type) : null;
        ((SourceActivity) pipeline.getFirstActivity()).setContent(src);
    }
View Full Code Here

    private void setTarget(DataLocationType type) {
        ((TargetActivity) pipeline.getLastActivity()).setContent(createTarget(type));
    }

    private Source createSource(DataLocationType type) {
        Source source = new Source("Source");
        source.setLocation(type.createLocation());
        return source;
    }
View Full Code Here

    }

    @Test
    public void testCopyConstructor() {
        OperationPipeline original = TransformationOperationType.TYPE.createNewTemplate();
        Source source = new Source("Source");
        ((SourceActivity) original.getFirstActivity()).setContent(source);
        OperationPipeline copy = new OperationPipeline(original);
        verifyThatCopyContainsClonesOfOriginalActivities(original, copy);
        verifyThatCopyIsUnaffectedByChangesToOriginal(original, copy);
    }
View Full Code Here

        target = target.clone();
        OperationPipeline pipeline_2 = new OperationPipeline(TransformationOperationType.TYPE, KList.fromItems(source,
                        transformation, target));
        assertEquals(pipeline_1, pipeline_2);
        assertEquals(pipeline_1.hashCode(), pipeline_2.hashCode());
        source.setContent(new Source("Source"));
        assertFalse(pipeline_1.equals(pipeline_2));
        ((SourceActivity) pipeline_1.getFirstActivity()).setContent(source.getContent());
        assertEquals(pipeline_1, pipeline_2);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.Source

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.