cancel
Showing results for 
Search instead for 
Did you mean: 

Build is failing in Hybris 5.7.3 version.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member469962
Contributor
0 Kudos

Hello Karthik,

The test compile failures arise from a customization. If you take a look at the errors:
a. the first 2 being : CoreMatchers.containsString(String) method. --> I would ask you to review this class CoreMatchers and verify that the method with the required signature is indeed present.
b. The 3rd error is around willThrow method of BDDMockito. Do verify that the arguments passed are correct.

After correcting them, execute "ant clean all" from the console.

Hope this helps.

Br, Shwetha

Former Member
0 Kudos

Hi Shwetha,

We have verified the method signature is present and regarding BDDMockito, arguments passed is correct. I am using hybris 5.7.0.3

Former Member
0 Kudos

Hi Shwetha,

Your answer made me think in other perspectives also . Now , We have identified the root cause, it was because one of the extensions was using different of version Mockito, which was added manually.

Thanks Karthik

Answers (1)

Answers (1)

former_member674349
Participant
0 Kudos

Just Clean you project from ee and build it again

Former Member
0 Kudos

Hi Jayant,

Build is still failing. when i do ant all in the platform .

Thanks Karthik