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

Commit 331f6a5

Browse files
authored
Update RunMatlabTestsBuilderTest.java
1 parent d74a4fb commit 331f6a5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/java/com/mathworks/ci/RunMatlabTestsBuilderTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
package com.mathworks.ci;
22
/**
33
* Copyright 2019-2020 The MathWorks, Inc.
4-
54
*
65
* Test class for RunMatlabTestsBuilder
76
*
87
*/
98

109
import java.io.File;
11-
1210
import java.io.IOException;
1311
import java.net.URISyntaxException;
1412
import java.net.URL;
1513
import java.util.*;
16-
1714
import com.gargoylesoftware.htmlunit.html.HtmlInput;
1815
import org.junit.After;
1916
import org.junit.Assert;
@@ -156,7 +153,7 @@ public void verifyMATLABlaunchedWithDefaultArgumentsBatch() throws Exception {
156153
public void verifyMATLABlaunchedWithDefaultArgumentsRWindows() throws Exception {
157154
this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), getMatlabroot("R2017a")));
158155
project.getBuildWrappersList().add(this.buildWrapper);
159-
project.getBuildersList().add(testBuilder);//adds latest plugin
156+
project.getBuildersList().add(testBuilder);
160157
FreeStyleBuild build = project.scheduleBuild2(0).get();
161158
jenkins.assertLogContains("run_matlab_command", build);
162159
jenkins.assertLogContains("runner", build);
@@ -524,6 +521,6 @@ public void verifySystemTempDirDeleted() throws Exception {
524521
project.getBuildWrappersList().add(this.buildWrapper);
525522
project.getBuildersList().add(testBuilder);
526523
FreeStyleBuild build = project.scheduleBuild2(0).get();
527-
jenkins.assertLogContains("rmdir(destination,'s')", build);
524+
jenkins.assertLogContains("rmdir(tmpDir,'s')", build);
528525
}
529526
}

0 commit comments

Comments
 (0)