Skip to Content
author's profile photo Former Member
Former Member

Build is failing in Hybris 5.7.3 version.

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 27, 2016 at 09:26 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 27, 2016 at 07:43 AM

    Just Clean you project from ee and build it again

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.