on 07-27-2016 6:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just Clean you project from ee and build it again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.