Skip to content

Commit 56374d6

Browse files
committed
Improvements to README file
1 parent 527b811 commit 56374d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ package com.example;
4141
import static io.github.jsonSnapshot.SnapshotMatcher.*;
4242
import static io.github.jsonSnapshot.SnapshotUtils.*;
4343

44+
@RunWith(MockitoJUnitRunner.class)
4445
public class ExampleTest {
4546

4647
@Mock
@@ -62,14 +63,12 @@ public class ExampleTest {
6263
expect("<any type of object>").toMatchSnapshot();
6364
}
6465

65-
@Test // Snapshot arguments passed to mocked object
66+
@Test // Snapshot arguments passed to mocked object (from Mockito library)
6667
public void shouldExtractArgsFromMethod() {
67-
6868
fakeObject.fakeMethod("test1", 1L, Arrays.asList("listTest1"));
6969
fakeObject.fakeMethod("test2", 2L, Arrays.asList("listTest1", "listTest2"));
7070

7171
expect(extractArgs(fakeObject, "fakeMethod", String.class, Long.class, List.class)).toMatchSnapshot();
72-
7372
}
7473

7574
class FakeObject {

0 commit comments

Comments
 (0)