-
*(Refers to [Lunch & Learn: Mocks & Spies](https://www.jamesshore.com/Blog/Lunch-and-Learn/Mocks-and-Spies.html)). Code [here](https://github.com/jamesshore/livestream/tree/2020-05-19-end).*
Hi Jam…
-
For some of my projects it would be nice if @InjectMock would work with spies on final/static fields.
Unfortunately I cannot refactor the code to use constructor/setter injection since this would alt…
-
```
I've forked the Git repository and am adding new static methods mockValid() and
spyValid() to the Mockito class to return a mock/spy that will enforce
constraints on the parameters and return ty…
-
```
What steps will reproduce the problem?
The following tests will show the problem:
{{{
Point point = new Point(1, 1);
Point point2 = new Point(1, 1);
// OK, using Point.equals(Object)
assertTrue(p…
-
```
What steps will reproduce the problem?
The following tests will show the problem:
{{{
Point point = new Point(1, 1);
Point point2 = new Point(1, 1);
// OK, using Point.equals(Object)
assertTrue(p…
-
```
What steps will reproduce the problem?
The following tests will show the problem:
{{{
Point point = new Point(1, 1);
Point point2 = new Point(1, 1);
// OK, using Point.equals(Object)
assertTrue(p…
-
```
What steps will reproduce the problem?
The following tests will show the problem:
{{{
Point point = new Point(1, 1);
Point point2 = new Point(1, 1);
// OK, using Point.equals(Object)
assertTrue(p…
-
```
What steps will reproduce the problem?
The following tests will show the problem:
{{{
Point point = new Point(1, 1);
Point point2 = new Point(1, 1);
// OK, using Point.equals(Object)
assertTrue(p…
-
```
What steps will reproduce the problem?
The following tests will show the problem:
{{{
Point point = new Point(1, 1);
Point point2 = new Point(1, 1);
// OK, using Point.equals(Object)
assertTrue(p…
-
```
/**
* Bug test for inorder spy
*/
@Test
public void testOrderIssues() {
PrintStream testStream = spy(System.out);
testStream.println("Hello!");
testS…