Package routines.system.api

Examples of routines.system.api.TalendJob


public class SimpleJobTaskTest {
   
    public static final String NAME = "name";
    @Test
    public void taskRunInvokesJobRun() {
        TalendJob job = createMock(TalendJob.class);
        expect(job.runJobInTOS(aryEq(new String[0]))).andReturn(0);
        replay(job);

        SimpleJobTask task = new SimpleJobTask(job, NAME);
        task.run();
        verify(job);
View Full Code Here


        Dictionary<String, String> properties = new Hashtable<String, String>();
        properties.put("context", "contextValue");
       
        String[] args = new String[]{"--context=contextValue"};

        TalendJob job = createMock(TalendJob.class);
        expect(job.runJobInTOS(aryEq(args))).andReturn(0);
        replay(job);

        SimpleJobTask task = new SimpleJobTask(job, NAME);
        task.updated(properties);
        task.run();
View Full Code Here

public class Launcher {

  public static void main(String[] args) {
    // Instantiate a Job
    TalendJob job = new TestProviderJob();
    TalendJob job1 = new TestConsumerJob();
    TalendJob job2 = new FakeTalendJob();
    Launcher launcher = new Launcher();
    launcher.run(job2);
    System.out.println();
    System.out.println("==================================================");
    System.out.println();
View Full Code Here

        verifyAll();
    }

    @Test
    public void jobAddedManagedServiceRegistered() throws Exception {
        TalendJob job = createNiceMock(TalendJob.class);

        expectManagedJobStarting(SimpleJobTask.class);
        replayAll();

        jobLauncher.jobAdded(job, NAME);
View Full Code Here

        verifyAll();
    }

    @Test
    public void managedServiceForJobUnregisteredIfRegisteredBefore() throws Exception {
        TalendJob job = createNiceMock(TalendJob.class);
        sr.unregister();

        expectManagedJobStarting(SimpleJobTask.class);
        replayAll();
View Full Code Here

        return context;
    }

    public TalendJob getJobInstance()
        throws ClassNotFoundException, NoSuchMethodException, InvalidSyntaxException {
        final TalendJob jobInstance;
        TalendESBJobFactory talendESBJobFactory = Activator.getJobService(TalendESBJobFactory.class, clazz);
        if (null != talendESBJobFactory) {
            jobInstance = talendESBJobFactory.newTalendESBJob();
        } else {
            Class<?> jobType = this.getCamelContext().getClassResolver().resolveMandatoryClass(clazz);
View Full Code Here

TOP

Related Classes of routines.system.api.TalendJob

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.