From 606e94d6ea18a7cb0f060aac69ce67ba58b26123 Mon Sep 17 00:00:00 2001 From: Evie Lau Date: Fri, 27 Oct 2023 10:14:09 -0500 Subject: [PATCH] Fix test assertion --- .../plugins/util/InstallFeatureUtilGetServerFeaturesTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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