details: https://code.openbravo.com/erp/devel/pi/rev/41c47dd2afae changeset: 36016:41c47dd2afae user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Thu Jun 06 11:42:41 2019 +0200 summary: related to issue 41033: change assertion to fix error in CI
diffstat: modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diffs (27 lines): diff -r e7f7f338f322 -r 41c47dd2afae modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java --- a/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java Thu Jun 06 11:24:08 2019 +0200 +++ b/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java Thu Jun 06 11:42:41 2019 +0200 @@ -23,8 +23,8 @@ import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.Matchers.allOf; +import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.hasSize; -import static org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder; import static org.junit.Assert.assertThat; import java.util.List; @@ -107,11 +107,10 @@ private void assertExtensionBeansInjection(Stream<ExtensionBean> beans) { int numberOfExtensionBeans = 2; - String[] expectedNames = { "qualifiedBean", "unqualifiedBean" }; List<String> names = beans.map(ExtensionBean::getName).collect(Collectors.toList()); - assertThat("Retrieved the expected beans", names, - allOf(hasSize(numberOfExtensionBeans), containsInAnyOrder(expectedNames))); + assertThat("Retrieved the expected beans", names, allOf(hasSize(numberOfExtensionBeans), + hasItem("qualifiedBean"), hasItem("unqualifiedBean"))); } } _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits