All Posts
JUnit – Unit Testing Framework
JUnit - Unit Testing Framework
JUnit is a simple, open-source Unit Testing framework tool for writing and running repeatable unit test...
JUnit @RunWith Annotation
JUnit @RunWith Annotation
In this post, we will discuss @RunWith Annotation. When a class is annotated with @RunWith or extends a clas...
JUnit Test Suite in Eclipse
JUnit Test Suite in Eclipse
In this post, we will see how to create JUnit Test Suite in Eclipse. If we have several test classes, we c...
Assumptions in JUnit Tests
Introduction
In this post, we will discuss assumptions in JUnit tests. Before executing tests we can check out assumptions about the t...
JUnit Calculator Test Case Example
JUnit Calculator Test Case Example
We will examine a Simple Calculator Test case example for writing JUnit Tests. This tutorial helps ...
JUnit Annotations order
Introduction
JUnit annotations are used to setUp and tearDown test fixtures. Different annotations in
JUnit4 are:
@BeforeClass
...
Disadvantages of using Inherited tests in JUnit
Introduction
In this tutorial, we will learn why inherited tests in JUnit create lot of confusion. Many people tend to inherit test cl...
@Ignore annotation in JUnit
Overview
In this post, we will learn how to ignore tests in JUnit. To ignore a test we use @Ignore annotation. @Ignore annotated metho...
Differences between JUnit 3 and JUnit 4
Introduction
In this post, we will discuss some of the differences between JUnit 3 and JUnit 4. The most important difference is that ...
Testing exceptions in JUnit
Overview
Let's learn the steps involved in Testing exceptions using JUnit framework. In this post, we will learn how to test methods t...