diff --git a/src/test/java/io/openliberty/tools/common/plugins/util/InstallFeatureUtilGetServerFeaturesTest.java b/src/test/java/io/openliberty/tools/common/plugins/util/InstallFeatureUtilGetServerFeaturesTest.java index 1bff4c83..250ab946 100644 --- a/src/test/java/io/openliberty/tools/common/plugins/util/InstallFeatureUtilGetServerFeaturesTest.java +++ b/src/test/java/io/openliberty/tools/common/plugins/util/InstallFeatureUtilGetServerFeaturesTest.java @@ -15,6 +15,7 @@ */ package io.openliberty.tools.common.plugins.util; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; @@ -625,7 +626,7 @@ public void testInvalidIncludeDir() throws Exception { expected.add("orig"); verifyServerFeatures(expected); - util.containsErrorMessage("Path specified a file, but resource exists as a directory (path=includeDir)"); + assertTrue(util.containsErrorMessage("Path specified a file, but resource exists as a directory (path=includeDir)")); } @Test