-
I find myself creating test helpers/mocks in my test modules that are marked with `#[cfg(test)]`. They are exported as `pub` and can conveniently be used throughout the crate.
These helpers are not …
-
![image](https://user-images.githubusercontent.com/30693990/158373773-3e9aa727-358e-4007-a17e-f1e2a0a3970e.png)
Mocks:
1. active should not have the pink border bottom (should just be hover colo…
-
```
Assuming I have a dependency injection framework that is injecting mocks
for me, I don't necessarily know what beans are in what state across my
unit test.
Rather than call Mockito.reset(bean1,be…
-
```
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…
-
```
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…
-
```
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…
-
**Epic:** https://github.com/elastic/kibana/issues/153633
## Summary
Some properties in rule mock data are the same or similar for some reason. See ([comment](https://github.com/elastic/kibana/p…
-
```
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…