@@ -0,0 +1,1401 @@
+package nl.esciencecenter.octopus.adaptors.local;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Mockito.mock;%0A%0Aimport nl.esciencecenter.octopus.engine.OctopusEngine;%0Aimport nl.esciencecenter.octopus.engine.OctopusProperties;%0Aimport nl.esciencecenter.octopus.exceptions.OctopusException;%0Aimport nl.esciencecenter.octopus.jobs.JobDescription;%0Aimport nl.esciencecenter.octopus.jobs.Scheduler;%0A%0Aimport org.junit.Test;%0A%0Apublic class LocalJobsTest %7B%0A%0A    @Test%0A    public void submitJob_WithoutStdin_NoException() throws OctopusException %7B%0A        LocalAdaptor adaptor = mock(LocalAdaptor.class);%0A        OctopusEngine octopus = mock(OctopusEngine.class);%0A        Scheduler scheduler = mock(Scheduler.class);%0A%0A        String%5B%5D%5B%5D defaults = new String%5B%5D%5B%5D %7B %7B LocalAdaptor.MULTIQ_MAX_CONCURRENT, %221%22%7D, %7B LocalAdaptor.MAX_HISTORY, %2210%22%7D, %7BLocalAdaptor.POLLING_DELAY, %225000%22%7D%7D;%0A        OctopusProperties props = new OctopusProperties(defaults);%0A        LocalJobs lj = new LocalJobs(props, adaptor, octopus);%0A%0A        JobDescription description = new JobDescription();%0A        description.setExecutable(%22/bin/sleep%22);%0A        description.setArguments(%2230%22);%0A        description.setWorkingDirectory(%22/tmp%22);%0A        description.setStderr(%22stderr.txt%22);%0A        description.setStdout(%22stdout.txt%22);%0A        description.setQueueName(%22multi%22);%0A%0A        lj.submitJob(scheduler, description);%0A    %7D%0A%0A%7D%0A

Test local job submission without stdin.