Java Eclipse Tutorial – Part 9: Running JUnit Tests

In this video tutorial, I will show you how to run JUnit tests Eclipse. I will discuss the following topics: • Create a Unit Test • Running the Test Please subscribe to this channel :-) Download Source Code   [includeme file="wp-content/uploads/2015/05/eclipse-tutorial-toc.html"]   Video Transcript Time - 00:00 Hi, this is Chad (shod) with luv2code.com. Welcome back to another tutorial on [...]

By |2014-08-22T03:53:51-04:00August 22, 2014|Eclipse, How-To, Java, JUnit|Comments Off on Java Eclipse Tutorial – Part 9: Running JUnit Tests

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

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
Go to Top