junit
-
junit
“No JUnit Tests Found” Error Solution
1. Introduction One of the first steps that developers take in order to create Unit Test case is to ensure…
Read More » -
junit
JUnit Integration Test Example
1. Introduction Integration tests are test cases that test highly coupled external services. A great example of this is services…
Read More » -
junit
JUnit Best Practices
1. Introduction There are a lot of ways on how a developer can do JUnit test cases, but overall it…
Read More » -
junit
JUnit NetBeans Example
1. Introduction In this post I will introduce the basics of writing and running JUnit unit tests in NetBeans IDE.…
Read More » -
junit
JUnit Test Suite Example
1. Introduction A JUnit Test suite is used to bundle multiple test cases together in a single run. This is…
Read More » -
junit
Spring JUnit Test Example
In this example, I’ll be showcasing how to do Unit Tests for Spring beans using only annotations. 1. Introduction Spring…
Read More » -
junit
JUnit SetUp / TearDown Example
1. Introduction When we create JUnit test cases, we would normally setup our own configuration and data objects that can…
Read More » -
junit
JUnit assertEquals example
1. Introduction To follow through with my previous post about assertTrue and assertFalse, this post will tackle on checking for an…
Read More » -
Maven
JUnit Maven Example
In this example, we will show you how to implement and execute unit testing, using the JUnit Framework and Maven.…
Read More » -
junit
JUnit Rules Example
The implementation of a Rule might look like this: import org.junit.rules.TestRule; import org.junit.runner.Description; import org.junit.runners.model.Statement; public class LoggingRule implements TestRule…
Read More »