details: https://code.openbravo.com/erp/devel/pi/rev/4239ab3ce79e changeset: 36018:4239ab3ce79e user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Thu Jun 06 13:22:12 2019 +0200 summary: related to issue 41033: change assertion
The test compilation was still failing in CI, changing the assertion to avoid the problem diffstat: modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diffs (24 lines): diff -r 06711d4d7d57 -r 4239ab3ce79e 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 12:41:37 2019 +0200 +++ b/modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/testinfrastructure/CdiInfrastructure.java Thu Jun 06 13:22:12 2019 +0200 @@ -24,7 +24,6 @@ import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.Matchers.hasItem; -import static org.hamcrest.Matchers.hasSize; import static org.junit.Assert.assertThat; import java.util.List; @@ -110,7 +109,10 @@ List<String> names = beans.map(ExtensionBean::getName).collect(Collectors.toList()); - assertThat("Retrieved the expected beans", names, allOf(hasSize(numberOfExtensionBeans), - hasItem("qualifiedBean"), hasItem("unqualifiedBean"))); + assertThat("Retrieved the expected number of beans", names.size(), + equalTo(numberOfExtensionBeans)); + + assertThat("Retrieved the expected beans", names, + allOf(hasItem("qualifiedBean"), hasItem("unqualifiedBean"))); } } _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits