Category: junit

How to mock static variables using Mockito

How to mock static variables using Mockito

What you will learn here about Mockito How to mock static variables using Mockito While working with Junit sometimes we come to situation where we need to mock static variable. Here we will see...

How to mock private variables using mockito

How to mock private variables using mockito

What you will learn here about Junit How to mock private variables using mockito While working on junit sometimes we come to situation where we need to mock or set value for private fields....

How to test that no exception is thrown

How to test that no exception is thrown

What you will learn here about Junit How to test that no exception is thrown Here we will see how to test np exception test or how to test that no exception is thrown...

How to create junit test case in intellij

How to create junit test case in intellij

What you will learn here about Junit How to create junit test case in intellij How to create junit test case in intellij Please follow the following steps to know how to create junit...

JUnit test cases example in Eclipse

JUnit test cases example in Eclipse

What you will learn here about Junit JUnit test cases example in Eclipse JUnit test cases example in Eclipse Please follow the following steps to know how to write Junit test case in Eclipse...

How to write test case for exception in Junit

How to write test case for exception in Junit

What you will learn here about Junit How to write test case for exception in Junit Sometimes we come to situation where we want to write test case for exception. So here we will...

How to avoid multiple asserts in a JUnit test

How to avoid multiple asserts in a JUnit test

What you will learn here about Junit test case How to avoid multiple asserts in a JUnit test Please click on below link to download Sample project How to avoid multiple asserts in a...