-
```
This should be possible now with the new changes that Jan made. I tried to
remove the check in MockGateway but then some tests failed so I guess we
need some more work. I didn't investigate it any…
-
```
This should be possible now with the new changes that Jan made. I tried to
remove the check in MockGateway but then some tests failed so I guess we
need some more work. I didn't investigate it any…
-
```
This should be possible now with the new changes that Jan made. I tried to
remove the check in MockGateway but then some tests failed so I guess we
need some more work. I didn't investigate it any…
-
```
This should be possible now with the new changes that Jan made. I tried to
remove the check in MockGateway but then some tests failed so I guess we
need some more work. I didn't investigate it any…
-
The problem with our frontend tests is that the depend on the backend database being in a certain state. Currently, the tests do not pass and are skipped. Instead, we should mock the api responses and…
-
```
I'll try the following (quite simple) static method mocking in my test:
@RunWith(PowerMockRunner.class)
@PrepareForTest({ FacesContext.class })
public class MyControllerTest {
@Test
public final…
-
```
I'll try the following (quite simple) static method mocking in my test:
@RunWith(PowerMockRunner.class)
@PrepareForTest({ FacesContext.class })
public class MyControllerTest {
@Test
public final…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
We should create a mock api endpoint to serve our products.
Then we can request to a URL (i.e `www.locahost.com/mockapi?search=laptop`) and return a JSON with only the products that we searched for.
…
-
```
This should be possible now with the new changes that Jan made. I tried to
remove the check in MockGateway but then some tests failed so I guess we
need some more work. I didn't investigate it any…