Skip to content

Commit

Permalink
devonfw#36: Changed tests for running tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
aBega2000 committed Apr 19, 2024
1 parent cd43176 commit 1d6aca2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.devonfw.tools.ide.log.IdeLogLevel;
import com.devonfw.tools.ide.os.SystemInfo;
import com.devonfw.tools.ide.os.SystemInfoMock;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

Expand All @@ -30,13 +31,10 @@ public void testTomcatInstall(String os) {
checkDependencyInstallation(context);
}

@ParameterizedTest
@ValueSource(strings = { "mac", "windows", "linux" })
public void testTomcatRun(String os) {
@Test
public void testTomcatRun() {

IdeTestContext context = newContext(PROJECT_TOMCAT);
SystemInfo systemInfo = SystemInfoMock.of(os);
context.setSystemInfo(systemInfo);
Tomcat tomcatCommandlet = new Tomcat(context);
tomcatCommandlet.command.setValue(TomcatCommand.START);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#!/bin/sh

0 comments on commit 1d6aca2

Please sign in to comment.