This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/main by this push: new 81c93f81d7 [NO-JIRA] Fix FeatureTest with any JDK new 2b8c92a37e Merge pull request #1666 from jbonofre/FEATURE_TEST 81c93f81d7 is described below commit 81c93f81d717bfeaae3d5301908cfda6885dccd5 Author: Jean-Baptiste Onofré <jbono...@apache.org> AuthorDate: Mon Oct 17 15:38:43 2022 +0200 [NO-JIRA] Fix FeatureTest with any JDK --- itests/test/src/test/java/org/apache/karaf/itests/FeatureTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/itests/test/src/test/java/org/apache/karaf/itests/FeatureTest.java b/itests/test/src/test/java/org/apache/karaf/itests/FeatureTest.java index 3d27125b17..6d6a6595fd 100644 --- a/itests/test/src/test/java/org/apache/karaf/itests/FeatureTest.java +++ b/itests/test/src/test/java/org/apache/karaf/itests/FeatureTest.java @@ -96,8 +96,7 @@ public class FeatureTest extends BaseTest { for (int i = 2; i < lines.length; i++) { String row = lines[i]; assertTrue(row.matches("(.*|){4}")); - String[] columns = row.split("\\|"); - assertEquals(repositoryName.trim(), columns[repositoryColumnIndex].trim()); + assertContains(repositoryName, row); } }