Spring 4 MVC+Hibernate 4+MySQL+Maven integration + Testing example using annotations

This post shows you how to Unit and integration test your Data layer, service layer and view layer in a…

9 years ago

TestNG Mockito Example Stubbing Void Methods

In this post we will learn about using TestNG and Mockito together. We will also learn about stubbing void methods…

9 years ago

TestNG @DataProvider Example

In this post we will learn about TestNG @DataProvider annotation to parameterize your tests in order to write data-driven tests.…

9 years ago

TestNG @Parameters Example

In this post we will learn about how to parameterize your TestNG tests using TestNG @Parameters annotation which is used…

9 years ago

TestNG dependsOnGroups Example

In this post we will see TestNG groups dependency example showing a test depending on groups of tests methods using…

9 years ago

TestNG dependsOnMethods Example

In this post we will see TestNG dependency example between different test methods using @Test annotation's dependsOnMethods and alwaysRun attributes.…

9 years ago

TesNG expectedExceptions example

In this post we will learn how to use TestNG expectedExceptions feature to test the expected exception your code might…

9 years ago

TestNG timeOut example

In this post we will learn how to configure TestNG Tests to timeout after certain time, using TestNG timeout feature…

9 years ago

TestNG enabled example

In this post we will learn how to disable or ignore a test using @Test(enabled=false). Occasionally, we want to disable…

9 years ago

Maven Surefire plugin & TestNG

In this post we will learn how to execute TestNG tests with Maven using maven-surefire-plugin. This post also goes over…

9 years ago