Using TestNG with Spring

Testing Spring in JUnit is fairly simple given the test runner support. Using TestNG is a little bit more complex, but this tutorial will quickly get you up to speed. Table of Contents Moving to TestNG from JUnit Setting Up The Maven Dependency for TestNG Some Simple AbstractTestNGSpringContextTests Examples Moving to TestNG from JUnit A […]

Read More…

A Simple Hibernate, MySQL, and JUnit Tutorial

Table of Contents Getting Started with Hibernate and MySQL Configuring MySQL Configuring Hibernate Minimizing Setup Time A Simple Hibernate Entity A Hibernate Generic Entity Storage Class The JUnit Test Getting Started With Hibernate and MySQL In this tutorial, we’re once again going to use JUnit as a learning tool for exploring various Java technologies — […]

Read More…

Spring Unit Testing Using JUnit

Table of Contents The Simplest Case – Exploring the IDE Starter Project Testing Some Basic Spring Beans Pojo Style: Getting an Application Context in a junit.org Test Runner Exploring the IDE Starter Project In this tutorial we’ll set up some really basic Spring unit tests — the sort of thing that is vanilla enough so […]

Read More…

Pros and Cons of Test Driven Development

If you ask anyone who works with me, I’m a huge fan of automated unit testing in general and Test Driven Development (TDD) in particular. Ever since I first tried it out on a project eleven years ago, I’ve been convinced that Test Driven Development is a huge improvement over the number one software development […]

Read More…