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…

Spring Security – Spring Authentication and Authorization Basics

Table of Contents Introduction — My Scandalous Confession Generating a Spring Security Project The Security Configuration Files Spring’s StandardPasswordEncoder Using Security in the View Layer — The Spring Security Tag Libraries Introduction — My Scandalous Confession Before we begin with the tutorial, I am going to lay bare my soul to you. I know, most […]

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…