New book: Mockito

I'm really excited...feel like a kid on xmas day. I received a copy of the book, Practical Unit Testing with TestNG and Mockito.  The important element is Mockito. I've used mock objects in the past but with a fairly basic understanding. This book provides in-depth coverage of mock objects with Mockito. So I'm psyched that I finally have a definitive [...]

By |2012-07-09T15:44:59-04:00July 9, 2012|Agile, Test Driven Development, XP|Comments Off on New book: Mockito

My Bookshelf: SOA, Spring, Hibernate, GWT, TDD/JUnit, Agile, Scrum, Continuous Integration

Here's a snapshot of my bookshelf. Just a snippet of a much larger library. Nice collection of books on SOA, Spring, Hibernate, GWT, TDD/JUnit, Agile, Scrum, Continuous Integration [nggallery id=1 template=caption]

By |2012-07-01T16:46:41-04:00July 1, 2012|Agile, GWT, Java, Maven, Passion, Scrum, SOA, Software Project Management, Spring, Test Driven Development, XP|Comments Off on My Bookshelf: SOA, Spring, Hibernate, GWT, TDD/JUnit, Agile, Scrum, Continuous Integration

Unit Testing a Password Utility

In this post, we are going to develop a password utility. The utility has to support password validation. Here are the password security rules for the application: at least 8 characters, max of 12 at least one uppercase at least one lowercase at least one number at least one symbol @#$%=:? In regular TDD fashion, we'll first set out to [...]

By |2012-06-30T12:20:22-04:00June 30, 2012|Agile, Java, JUnit, Test Driven Development, XP|Comments Off on Unit Testing a Password Utility

Unit Testing Java Email Code with Fake SMTP Server

What is your testing strategy for sending emails from your Java application? Do you hard-code your developer email in the application? I've been there and done that (not too proud though). Ideally, you would like to use the actual email addresses in your testing process. However, you do not want to send the email to the actual recipient. You would [...]

By |2012-05-10T08:11:12-04:00May 10, 2012|Agile, Java, JavaMail, JUnit, Test Driven Development|Comments Off on Unit Testing Java Email Code with Fake SMTP Server

How to add Unit Testing to a Legacy Project

Source: InfoQ It is always a herculean task to write automated regression tests for a legacy application. The questions vary from where to start, how much to automate and deciding on the best strategy for automation. Responding to a thread started by Mark Levison on the Agile software testing group, Hubert Matthews suggested that the approach that he recommends is a [...]

By |2011-01-30T04:06:44-05:00January 30, 2011|Agile, Test Driven Development|Comments Off on How to add Unit Testing to a Legacy Project

Continuous Integration: Technical Practices

In software engineering, continuous integration (CI) implements continuous processes of applying quality control — small pieces of effort, applied frequently. Continuous integration aims to improve the quality of software, and to reduce the time taken to deliver it, by replacing the traditional practice of applying quality control after completing all development. - Source: Wikipedia Build Software At Every Change Automate [...]

By |2011-01-24T15:24:57-05:00January 24, 2011|Agile, Test Driven Development, XP|2 Comments

Code Coverage in Java

Code coverage provides information on how much of your application is executed. It is a good way to find dead code in your project (ie code that is never executed). I have been using code coverage for my unit testing. The code coverage will tell me how much of my application is covered by the unit tests. You can find [...]

By |2010-12-29T10:09:10-05:00December 29, 2010|Agile, JUnit, Test Driven Development|Comments Off on Code Coverage in Java

Creating JUnit Reports with Ant

Hopefully, you are using JUnit on your project to unit test your code. If you're new to JUnit then read this primer. JUnit provides an Ant task that can great generate HTML test reports. These reports are useful to show to your management team. They are also useful if you are running automated builds and you want to review the [...]

By |2010-12-24T19:28:58-05:00December 24, 2010|Agile, How-To, JUnit, Test Driven Development|Comments Off on Creating JUnit Reports with Ant

Agile, Scrum, XP …. I’m All In!

In the past couple of months, I've developed an interest in the Agile software development process. The funny thing is that I've worked on "Agile" projects in the past, however we only used bits and pieces of Agile. In fact, we only picked the areas of Agile that we liked such as unit testing, frequent releases and continuous integration. The [...]

By |2010-07-09T11:31:43-04:00July 9, 2010|Agile, Scrum, Test Driven Development, XP|Comments Off on Agile, Scrum, XP …. I’m All In!
Go to Top