git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube...
authorSweidan Omar <TFS\sweidan.omar>
Mon, 6 Dec 2021 11:19:40 +0000 (11:19 +0000)
committerSweidan Omar <TFS\sweidan.omar>
Mon, 6 Dec 2021 11:19:40 +0000 (11:19 +0000)
server/user.jobengine.osgi.server/test/user/jobengine/server/ProgramTest.java

index d1a2ac0281386f1c6697c8dff0b488e983fdb5db..b6adf15d6db1f86df57c0727751e5f8fc93a1995 100644 (file)
@@ -6,8 +6,6 @@ import static org.junit.Assert.assertFalse;
 import org.junit.Before;
 import org.junit.Test;
 
-import user.jobengine.server.IProgram;
-import user.jobengine.server.Program;
 import user.jobengine.server.instructions.CallJobStepInstruction;
 import user.jobengine.server.instructions.IInstruction;
 import user.jobengine.server.instructions.Instruction;
@@ -16,20 +14,20 @@ public class ProgramTest {
        private IProgram sut = null;
        private IInstruction i1 = new CallJobStepInstruction();
        private IInstruction i2 = new CallJobStepInstruction();
-       
+
        @Before
        public void setup() throws Exception {
                sut = new Program();
                sut.addInstruction(i1);
                sut.addInstruction(i2);
        }
-       
+
        @Test
        public void testGet_OK() throws Exception {
                assertEquals(i1, sut.get(0));
                assertEquals(i2, sut.get(1));
        }
-       
+
        @Test(expected = IndexOutOfBoundsException.class)
        public void testGet_InvalidIndex1() throws Exception {
                sut.get(-1);
@@ -40,7 +38,7 @@ public class ProgramTest {
                sut.get(2);
        }
 
-       @Test(expected = NullPointerException.class) 
+       @Test(expected = NullPointerException.class)
        public void testAdd_NullInstruction() throws Exception {
                sut.addInstruction(null);
        }
@@ -80,7 +78,7 @@ public class ProgramTest {
                assertFalse(program1.equals(program2));
        }
 
-       @Test (expected = RuntimeException.class)
+       @Test(expected = RuntimeException.class)
        public void testEquals_DifferentInstructions() throws Exception {
                // Fixture
                IProgram program1 = new Program();