Skip to content

Commit 4ed50a3

Browse files
Formatting the file
1 parent 2b5eb41 commit 4ed50a3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ In this tutorial, we will understand below topics -
1010
- When is it performed?
1111
- Who performs it?
1212
- How to perform it?
13+
1314
[**https://onlyfullstack.blogspot.com/2019/02/what-is-unit-testing.html**](https://onlyfullstack.blogspot.com/2019/02/what-is-unit-testing.html)
1415

1516
**Part 2 - ** What is JUnit? How to use JUnit?**
@@ -21,6 +22,7 @@ In this tutorial, we will understand below topics -
2122
1. Using mvn command
2223
2. Using Eclipse Run as \> JUnit Test
2324
- Eclipse Optimize Imports to Include Static Imports
25+
2426
[**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)
2527

2628
**Part 3 - Annotations used in JUnit**
@@ -34,6 +36,7 @@ In this tutorial, we will understand below topics -
3436
5. @AfterClass
3537
6. @Ignore or @Ignore("Why disabled")
3638
7. @Test (expected = Exception.class)
39+
3740
[**https://onlyfullstack.blogspot.com/2019/02/annotations-used-in-junit.html**](https://onlyfullstack.blogspot.com/2019/02/annotations-used-in-junit.html)
3841

3942
**Part 4 - JUnit Assert Methods**
@@ -44,6 +47,7 @@ In this tutorial, we will understand below topics -
4447
3. assertNull() + assertNotNull()
4548
4. assertSame() and assertNotSame()
4649
5. assertThat()
50+
4751
[**https://onlyfullstack.blogspot.com/2019/02/junit-assert-methods.html**](https://onlyfullstack.blogspot.com/2019/02/junit-assert-methods.html)
4852

4953
**Part 5 - Complete guide for Hamcrest JUnit**
@@ -72,6 +76,7 @@ In this tutorial, we will understand below topics-
7276
1. try-catch idiom
7377
2. @Test expected annotation
7478
3. Junit @Rule
79+
7580
[**https://onlyfullstack.blogspot.com/2019/02/assert-for-exception-in-junit.html**](https://onlyfullstack.blogspot.com/2019/02/assert-for-exception-in-junit.html)
7681

7782

@@ -90,13 +95,15 @@ In this tutorial, we will understand below topics -
9095
- Mockito Framework
9196
- Enable Mockito Annotations
9297
- How to Mock Object with @Mock & @InjectMock annotations in Spring application?
98+
9399
[**https://onlyfullstack.blogspot.com/2019/02/what-is-mockito.html**](https://onlyfullstack.blogspot.com/2019/02/what-is-mockito.html)
94100

95101
**Part 2 - How to mock methods with Mockito?**
96102
- How to mock methods?
97103
1. when/then
98104
2. when/thenThrow
99105
3. when/thenAnswer
106+
100107
[**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)
101108

102109
**Part 3- How to mock void methods with Mockito**
@@ -105,18 +112,21 @@ In this tutorial, we will understand below topics -
105112
1. doNothing/when
106113
2. doAnswer/when
107114
3. doThrow/when
115+
108116
[**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)
109117

110118
**Part 4 - How to verify mocks in Mockito**
111119
- Simple verify method
112120
- Variations in verify method
113121
- Verify with the number of times
114122
- Mockito Verify Order of Invocation
123+
115124
[**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)
116125

117126
**Part 5 - **** Mockito Mock vs Spy**
118127
- Mockito Mock vs Spy
119128
1. Object declaration
120129
2. When the methods are not mocked
121130
3. When the method is mocked
131+
122132
[**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

Comments
 (0)