@@ -10,6 +10,7 @@ In this tutorial, we will understand below topics -
10
10
- When is it performed?
11
11
- Who performs it?
12
12
- How to perform it?
13
+
13
14
[ ** https://onlyfullstack.blogspot.com/2019/02/what-is-unit-testing.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/what-is-unit-testing.html )
14
15
15
16
** Part 2 - ** What is JUnit? How to use JUnit?**
@@ -21,6 +22,7 @@ In this tutorial, we will understand below topics -
21
22
1 . Using mvn command
22
23
2 . Using Eclipse Run as \& gt; JUnit Test
23
24
- Eclipse Optimize Imports to Include Static Imports
25
+
24
26
[ ** https://onlyfullstack.blogspot.com/2019/02/what-is-junit-how-to-use-junit.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/what-is-junit-how-to-use-junit.html )
25
27
26
28
** Part 3 - Annotations used in JUnit**
@@ -34,6 +36,7 @@ In this tutorial, we will understand below topics -
34
36
5 . @AfterClass
35
37
6 . @Ignore or @Ignore (" ; Why disabled" ; )
36
38
7 . @Test (expected = Exception.class)
39
+
37
40
[ ** https://onlyfullstack.blogspot.com/2019/02/annotations-used-in-junit.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/annotations-used-in-junit.html )
38
41
39
42
** Part 4 - JUnit Assert Methods**
@@ -44,6 +47,7 @@ In this tutorial, we will understand below topics -
44
47
3 . assertNull() + assertNotNull()
45
48
4 . assertSame() and assertNotSame()
46
49
5 . assertThat()
50
+
47
51
[ ** https://onlyfullstack.blogspot.com/2019/02/junit-assert-methods.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/junit-assert-methods.html )
48
52
49
53
** Part 5 - Complete guide for Hamcrest JUnit**
@@ -72,6 +76,7 @@ In this tutorial, we will understand below topics-
72
76
1 . try-catch idiom
73
77
2 . @Test expected annotation
74
78
3 . Junit @Rule
79
+
75
80
[ ** https://onlyfullstack.blogspot.com/2019/02/assert-for-exception-in-junit.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/assert-for-exception-in-junit.html )
76
81
77
82
@@ -90,13 +95,15 @@ In this tutorial, we will understand below topics -
90
95
- Mockito Framework
91
96
- Enable Mockito Annotations
92
97
- How to Mock Object with @Mock & ; @InjectMock annotations in Spring application?
98
+
93
99
[ ** https://onlyfullstack.blogspot.com/2019/02/what-is-mockito.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/what-is-mockito.html )
94
100
95
101
** Part 2 - How to mock methods with Mockito?**
96
102
- How to mock methods?
97
103
1 . when/then
98
104
2 . when/thenThrow
99
105
3 . when/thenAnswer
106
+
100
107
[ ** https://onlyfullstack.blogspot.com/2019/02/how-to-mock-methods-with-mockito.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/how-to-mock-methods-with-mockito.html )
101
108
102
109
** Part 3- How to mock void methods with Mockito**
@@ -105,18 +112,21 @@ In this tutorial, we will understand below topics -
105
112
1 . doNothing/when
106
113
2 . doAnswer/when
107
114
3 . doThrow/when
115
+
108
116
[ ** https://onlyfullstack.blogspot.com/2019/02/how-to-mock-void-methods-with-mockito.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/how-to-mock-void-methods-with-mockito.html )
109
117
110
118
** Part 4 - How to verify mocks in Mockito**
111
119
- Simple verify method
112
120
- Variations in verify method
113
121
- Verify with the number of times
114
122
- Mockito Verify Order of Invocation
123
+
115
124
[ ** https://onlyfullstack.blogspot.com/2019/02/how-to-verify-mocks-in-mockito.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/how-to-verify-mocks-in-mockito.html )
116
125
117
126
** Part 5 - *** * Mockito Mock vs Spy**
118
127
- Mockito Mock vs Spy
119
128
1 . Object declaration
120
129
2 . When the methods are not mocked
121
130
3 . When the method is mocked
131
+
122
132
[ ** https://onlyfullstack.blogspot.com/2019/02/mockito-mock-vs-spy.html ** ] ( https://onlyfullstack.blogspot.com/2019/02/mockito-mock-vs-spy.html )
0 commit comments