-
```
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…
-
```
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…
-
example mock.json
``` java
{
"test-case" : {
"name": "xyz",
"description": "dasdadasda",
"state" : {
// use this initial state for this test-case.
}
},
"mocks" : [
…
-
The most recent version of shelf uses [`HttpHeaders.chunkedTransferEncoding`](https://api.dartlang.org/stable/1.20.1/dart-io/HttpHeaders/chunkedTransferEncoding.html), which is not mocked by [Redstone…
-
Add [Sinon](http://sinonjs.org/).
This item was punted from #336. It is blocked on #360.
- [ ] install sinonjs
- [ ] add to documentation in ``docs/App Overview.md``
-
```
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…