on 2018 Jun 05 6:22 AM
For example there is a test class DefaultWarehousingAsnFacadeTest in warehousingfacade extension hybris version 6.4. In this class test method shoulteAsn() is always failing because while setting up asnData object (which is a private member of the class) hybris is mocking releaseDate with some old date (2017-12-19). But in facade there is a validation on releaseDate that it should be a future date.
So ant unittests is generating fail report. To solve this issue I am trying to override the behavior of this class. I tried to override @Before method but asnData is a private member of the class. now I am trying to override @Test method, but the problem is super method is also getting called while ant unittests. So my whole purpose of overriding this class is waste.
Please suggest any solution.
Request clarification before answering.
| User | Count |
|---|---|
| 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.