Skip to content

Commit

Permalink
#439: small change in Tomcat Test
Browse files Browse the repository at this point in the history
  • Loading branch information
aBega2000 committed Aug 5, 2024
1 parent eff8cbe commit c5286e7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.devonfw.tools.ide.tool.tomcat;

import org.junit.jupiter.api.Test;

import com.devonfw.tools.ide.context.AbstractIdeContextTest;
import com.devonfw.tools.ide.context.IdeTestContext;
import com.devonfw.tools.ide.log.IdeLogLevel;
import org.junit.jupiter.api.Test;

public class TomcatTest extends AbstractIdeContextTest {

Expand All @@ -27,8 +27,8 @@ public void testTomcat() {

private void checkDependencyInstallation(IdeTestContext context) {

assertLogMessage(context, IdeLogLevel.INFO, "The version 17.0.10_7 of the dependency java is being installed");
assertLogMessage(context, IdeLogLevel.INFO, "The version 17.0.10_7 of the dependency java was successfully installed");
assertThat(context).logAtInfo().hasMessage("The version 17.0.10_7 of the dependency java is being installed");
assertThat(context).logAtInfo().hasMessage("The version 17.0.10_7 of the dependency java was successfully installed");

}

Expand All @@ -44,7 +44,7 @@ private void checkInstallation(IdeTestContext context) {
assertThat(context.getSoftwarePath().resolve("tomcat/bin/catalina.sh")).exists().hasContent("#!/bin/bash\n" + "echo \"Test for linux and Mac\"");

assertThat(context.getSoftwarePath().resolve("tomcat/.ide.software.version")).exists().hasContent("10.1.14");
assertLogMessage(context, IdeLogLevel.SUCCESS, "Successfully installed tomcat in version 10.1.14");
assertThat(context).logAtSuccess().hasMessage("Successfully installed tomcat in version 10.1.14");
}

}

0 comments on commit c5286e7

Please sign in to comment.