@@ -0,0 +1,1814 @@
+package nl.esciencecenter.octopus.tests.engine;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.hamcrest.CoreMatchers.*;%0A%0Aimport java.util.Properties;%0A%0Aimport nl.esciencecenter.octopus.Octopus;%0Aimport nl.esciencecenter.octopus.engine.Adaptor;%0Aimport nl.esciencecenter.octopus.engine.OctopusEngine;%0Aimport nl.esciencecenter.octopus.exceptions.OctopusException;%0A%0Aimport org.junit.Test;%0A%0Apublic class OctopusEngineTest %7B%0A%0A    @Test%0A    public void testNewEngineWithNulls() throws OctopusException %7B%0A        Octopus octopus = OctopusEngine.newEngine(null, null);%0A        assertThat(octopus.getDefaultProperties(), is(new Properties()));%0A    %7D%0A%0A    @Test%0A    public void testNewEngineWithWithProperties() throws OctopusException %7B%0A        Properties properties = new Properties();%0A        properties.setProperty(%22key%22, %22value%22);%0A        Octopus octopus = OctopusEngine.newEngine(properties, null);%0A        assertThat(octopus.getDefaultProperties(), is(properties));%0A    %7D%0A%0A    public OctopusEngine getEngineWithOnlyLocalAdaptor() throws OctopusException %7B%0A        Properties properties = new Properties();%0A        properties.setProperty(%22octopus.adaptors.load%22, %22Local%22);%0A        Octopus octopus = null;%0A        octopus = OctopusEngine.newEngine(properties, null);%0A        return (OctopusEngine) octopus;%0A    %7D%0A%0A    @Test%0A    public void testGetAdaptorFor() throws OctopusException %7B%0A        OctopusEngine octopus = getEngineWithOnlyLocalAdaptor();%0A        Adaptor adaptor = octopus.getAdaptorFor(%22file%22);%0A        assertThat(adaptor.getName(), is(%22Local%22));%0A    %7D%0A%0A    @Test%0A    public void testGetAdaptor() throws OctopusException %7B%0A        OctopusEngine octopus = getEngineWithOnlyLocalAdaptor();%0A        Adaptor adaptor = octopus.getAdaptor(%22Local%22);%0A        assertThat(adaptor.getName(), is(%22Local%22));%0A    %7D%0A%7D%0A

Add OctopusEngineTest case.