Month: July 2015

Testing data access layer using Testng, DBunit, Mockito, H2 & Spring-test

Testing DAO or data access layer is always a subject of debate. What exactly we want to test? Do we…

9 years ago

How to setup MySQL on local PC

In this post, we will learn how to setup MySQL on our local machines/system. This is one of the possible…

9 years ago

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