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

Commit c29ae44

Browse files
committed
Updated as per review comments
1 parent 0261e99 commit c29ae44

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/main/java/com/mathworks/ci/tools/MatlabInstaller.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ private void appendReleaseToArguments (ArgumentListBuilder args, TaskListener lo
196196

197197
if (releaseVersion != null && releaseVersion.contains ("prerelease")) {
198198
actualRelease = releaseVersion.replace ("prerelease", "");
199-
args.add ("--release-status=Prerelease");
200199
} else {
201200
actualRelease = releaseVersion;
202201
}

src/test/java/unit/com/mathworks/ci/utilities/GetSystemPropertiesUnitTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,13 @@ public class GetSystemPropertiesUnitTest {
2020

2121
@Before
2222
public void setUp () {
23-
// Initialize with the properties
24-
getSystemProperties = spy (new GetSystemProperties ("os.name", "os.arch", "os.version"));
23+
getSystemProperties = new GetSystemProperties ("os.name","os.arch", "os.version");
2524
}
2625

2726
@Test
2827
public void testCall () {
29-
doReturn (new String[]{"MockOS", "MockArch", "MockVersion"}).when (getSystemProperties)
30-
.call ();
31-
32-
// Call the method under test
28+
String[] expected = {System.getProperty ("os.name"),System.getProperty ("os.arch"),System.getProperty ("os.version")};
3329
String[] result = getSystemProperties.call ();
34-
35-
// Define the expected result
36-
String[] expected = {"MockOS", "MockArch", "MockVersion"};
3730
assertArrayEquals (expected, result);
3831
}
3932
}

0 commit comments

Comments
 (0)