From 8c0d9efe2f28a72890aec2d5cf89d765600256a1 Mon Sep 17 00:00:00 2001 From: Vahila <70003902+Vahila@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:04:16 +0530 Subject: [PATCH] Remove adding MATLAB path for tests --- .../com/mathworks/ci/RunMATLABCommandIT.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/integ-test/java/com/mathworks/ci/RunMATLABCommandIT.java b/src/integ-test/java/com/mathworks/ci/RunMATLABCommandIT.java index 07dd2fda..71c14cf5 100644 --- a/src/integ-test/java/com/mathworks/ci/RunMATLABCommandIT.java +++ b/src/integ-test/java/com/mathworks/ci/RunMATLABCommandIT.java @@ -64,8 +64,8 @@ public void testTearDown() { @Test public void verifyBuildFailureWhenMatlabCommandFails() throws Exception { - this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot())); - project.getBuildWrappersList().add(this.buildWrapper); + // this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot())); + // project.getBuildWrappersList().add(this.buildWrapper); RunMatlabCommandBuilder tester = new RunMatlabCommandBuilder(); tester.setMatlabCommand(TestData.getPropValues("pwd")); @@ -79,8 +79,8 @@ public void verifyBuildFailureWhenMatlabCommandFails() throws Exception { */ @Test public void verifyBuildPassesWhenMatlabCommandPasses() throws Exception { - this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot())); - project.getBuildWrappersList().add(this.buildWrapper); + // this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), MatlabRootSetup.getMatlabRoot())); + // project.getBuildWrappersList().add(this.buildWrapper); RunMatlabCommandBuilder tester = new RunMatlabCommandBuilder(); tester.setMatlabCommand("version"); @@ -99,8 +99,8 @@ public void verifyMatrixBuildFails() throws Exception { Axis axes = new Axis("VERSION", "R2018a", "R2018b"); matrixProject.setAxes(new AxisList(axes)); String matlabRoot = TestData.getPropValues("matlab.invalid.root.path") + "VERSION"; - this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot)); - matrixProject.getBuildWrappersList().add(this.buildWrapper); + // this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot)); + // matrixProject.getBuildWrappersList().add(this.buildWrapper); matrixProject.getBuildersList().add(scriptBuilder); Map vals = new HashMap(); @@ -126,8 +126,8 @@ public void verifyMatrixBuildPasses() throws Exception { Axis axes = new Axis("VERSION", MATLABVersion1, MATLABVersion2); matrixProject.setAxes(new AxisList(axes)); String matlabRoot = MatlabRootSetup.getMatlabRoot(); - this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot.replace(MATLABVersion1, "$VERSION"))); - matrixProject.getBuildWrappersList().add(this.buildWrapper); + // this.buildWrapper.setMatlabBuildWrapperContent(new MatlabBuildWrapperContent(Message.getValue("matlab.custom.location"), matlabRoot.replace(MATLABVersion1, "$VERSION"))); + // matrixProject.getBuildWrappersList().add(this.buildWrapper); RunMatlabCommandBuilder tester = new RunMatlabCommandBuilder(); tester.setMatlabCommand("version");