Skip to Content
1
Former Member
Jul 27, 2016 at 05:44 AM

Build is failing in Hybris 5.7.3 version.

271 Views

Hi All,

ant build is failing in Hybris 5.7.3 Even though, we didn't make any changes in AccountPageController.java file but the AccountPageControllerTest.java is failing. Please let me know if someone is facing issues.

[yjavac] Compiling 1 source file to /hybris/bin/custom/research/researchstorefront/web/testclasses [yjavac] ---------- [yjavac] 1. ERROR in /web/testsrc/com/research/storefront/controllers/pages/AccountPageControllerTest.java (at line 348) [yjavac] assertThat(addAddressPage, CoreMatchers.containsString(REDIRECT_TO_EDIT_ADDRESS_PAGE)); [yjavac] ^^^^^^^^^^^^^^ [yjavac] The method containsString(String) is undefined for the type CoreMatchers [yjavac] ---------- [yjavac] 2. ERROR in researchstorefront/web/testsrc/com/research/storefront/controllers/pages/AccountPageControllerTest.java (at line 398) [yjavac] assertThat(editAddressPage, CoreMatchers.containsString(REDIRECT_TO_EDIT_ADDRESS_PAGE)); [yjavac] ^^^^^^^^^^^^^^ [yjavac] The method containsString(String) is undefined for the type CoreMatchers [yjavac] ---------- [yjavac] 3. ERROR in /researchstorefront/web/testsrc/com/research/storefront/controllers/pages/AccountPageControllerTest.java (at line 435) [yjavac] BDDMockito.given(orderFacade.getOrderDetailsForCode(TEST_CODE)).willThrow(UnknownIdentifierException.class); [yjavac] ^^^^^^^^^ [yjavac] The method willThrow(Throwable...) in the type BDDMockito.BDDMyOngoingStubbing is not applicable for the arguments (Class) [yjavac] ---------- [yjavac] 3 problems (3 errors)

BUILD FAILED