-
```
In a Mock throw a checked exception
1 * repository.findOne(42l) >> {throw new NotFoundException("oh no!")}
In the "then" clause use the thrown check to verify the exception
thrown(NotFoun…
-
See discussion on #35942.
The `verifyAndClear` method in many of the ISIS Reflectometry GUI tests are called as the last step for every test at the moment. This method is needed because the tests c…
-
Hi,
I take part of the webmaster team of Cofidis.fr.
We have noticed 404 errors coming from your GitHub pages and code about Cofidis.
Could you remove this bad links please ?
Thank you,
Anne
…
-
As can be seen in `go.mod`, we depend on `golang/mock` for mocking:
https://github.com/kubevirt/kubevirt/blob/176d0529256dc8f7263e348b1743a89ec614cb51/go.mod#L20
However, as can be seen in https:…
-
I am testing a workflow where I call a few activities in sequence. If activity A fails, then the workflow should be aborted, and activity B should not be called. I have written the following test code…
-
Try including the library I wrote for testing requirejs modules: https://www.github.com/mattfysh/testr.js
-
```
Here is a simple example:
SomeClass mock = Mokito.mock(SomeClass.class);
RealObject realObject = new RealObject();
InOrder order = Mockito.inOrder(realObject, mock);
I would expect an exception…
-
```
Guava's Optional is described here:
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Op
tional.html
It'd be nice when calling a method on a mocked object whose retur…
-
```
Here is a simple example:
SomeClass mock = Mokito.mock(SomeClass.class);
RealObject realObject = new RealObject();
InOrder order = Mockito.inOrder(realObject, mock);
I would expect an exception…
-
```
Guava's Optional is described here:
http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Op
tional.html
It'd be nice when calling a method on a mocked object whose retur…