Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit ed3d87f

Browse files
committed
Add extra test cases
1 parent 36f6ee3 commit ed3d87f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/test/java/unit/com/mathworks/ci/actions/RunMatlabBuildActionTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,11 @@ public void shouldCopyBuildResultsToRootAndAddsAction() throws IOException, Inte
168168
// Should have copied file to root dir
169169
assertTrue(new File(tmp, "buildArtifact.json").exists());
170170
}
171+
172+
@Test
173+
public void shouldRemoveTempFolder() throws IOException, InterruptedException, MatlabExecutionException {
174+
action.run();
175+
176+
verify(runner).removeTempFolder();
177+
}
171178
}

src/test/java/unit/com/mathworks/ci/actions/RunMatlabCommandActionTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,11 @@ public void printsAndRethrowsMessage() throws IOException, InterruptedException,
6666
assertEquals(12, e.getExitCode());
6767
};
6868
}
69+
70+
@Test
71+
public void shouldRemoveTempFolder() throws IOException, InterruptedException, MatlabExecutionException {
72+
action.run();
73+
74+
verify(runner).removeTempFolder();
75+
}
6976
}

src/test/java/unit/com/mathworks/ci/actions/RunMatlabTestsActionTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,11 @@ public void printsAndRethrowsMessage() throws IOException, InterruptedException,
170170
assertEquals(12, e.getExitCode());
171171
};
172172
}
173+
174+
@Test
175+
public void shouldRemoveTempFolder() throws IOException, InterruptedException, MatlabExecutionException {
176+
action.run();
177+
178+
verify(runner).removeTempFolder();
179+
}
173180
}

0 commit comments

Comments
 (0)