Repository navigation
Commit 11241ea
Changes to code to add verifications (eugenp#518)
* Add new module for mocks comparison.
* Add sources for testing.
* Changes on testCase.
* Enter some tests for mockito.
* More tests for Mockito.
* Even more tests.
* Add the rest of the mocking libraries.
* Javadoc on test.
* Test bare bones for EasyMock.
* Fist kind of test and setup.
* Add tests using EasyMock with a change on LoginService.
* Create LoginControllerTest.java
* Test setup
* [JMockit] No method called test.
* [JMockit] Two methods called test.
* [JMockit] One method called test.
* [JMockit] Exception mock test
* [JMockit] Mocked object to pass around test.
* [JMockit] Custom matcher test.
* [JMockit] Partial mocking test.
* [JMockit] Fix with IDE.
* Not stubs. Mocks. MOCKS!!!
* Remove unnecesary import.
* Use correct encoding. Was having problems with buildings.
* Remove failing module.
* Create new module mocks and move mock-comparisons there.
* Add jmockit module.
* Add model class.
* Add collaborator class.
* Add performer class.
* Add performer test.
* Fix
* Add interface for tests.
* Test for any.
* Test for with.
* Test for null.
* Test for times.
* Test for arg that.
* Test for result and returns.
* Test for delegate.
* Add verifications to any tests.
* Add verifications to with test.
* Add verification examples to methods using null.
* Add verifications to methods using times.
* Formatting.1 parent 2f8dc9d commit 11241ea
2 files changed
Lines changed: 55 additions & 19 deletions
File tree
- mocks/jmockit/src
- main/java/org/baeldung/mocks/jmockit
- test/java/org/baeldung/mocks/jmockit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
28 | 39 | | |
29 | 40 | | |
30 | | - | |
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
37 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
38 | 58 | | |
39 | 59 | | |
40 | | - | |
41 | 60 | | |
42 | 61 | | |
43 | 62 | | |
44 | 63 | | |
45 | | - | |
46 | 64 | | |
47 | 65 | | |
48 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
49 | 77 | | |
50 | 78 | | |
51 | | - | |
52 | 79 | | |
53 | 80 | | |
54 | 81 | | |
55 | 82 | | |
56 | | - | |
57 | 83 | | |
58 | 84 | | |
59 | | - | |
| 85 | + | |
60 | 86 | | |
61 | 87 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
| 91 | + | |
69 | 92 | | |
70 | 93 | | |
71 | 94 | | |
72 | | - | |
73 | | - | |
74 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
75 | 107 | | |
76 | 108 | | |
77 | 109 | | |
| |||
114 | 146 | | |
115 | 147 | | |
116 | 148 | | |
| 149 | + | |
117 | 150 | | |
118 | 151 | | |
119 | 152 | | |
| |||
0 commit comments