Subscribe
Tutorial search

Java Unit Test Tutorials


Sort by:
What is Assertion in Java with Example
What is Assertion in Java with Example
Java tutorial on what is assertion in java and why should you use assertion to improve code quality. Also Assertion in java is fairly underused feature but if used carefully can complement both Unit Testing and Exception handling. Since Assertion sits on code its gets more expose than unit testing and can test your function with more real data than one or two test data.
Difficulty:
Spring JPA, One to Many Relationships, Hibernate and DAO's tutorial
Spring JPA, One to Many Relationships, Hibernate and DAO's tutorial
This tutorial shows how to use Spring, JPA and Hibernate to model and unit test a bi-directional oneToMany relationship. Full source code is included.
Difficulty:
An Eclipse / GlassFish / Java EE 6 Cookbook
An Eclipse / GlassFish / Java EE 6 Cookbook
A comprehensive tutorial about using Eclipse and the GlassFish v3 Java application server to implement Java EE 6 applications. It shows how to use different Eclipse project types for different purposes, how to do manual tests and how to implement automatic unit tests. You will not create a complete application, but more a vertical slice through an application. The idea is to just touch all relevant areas, not to finish a project. The tutorial assumes the existence of a relational database, and it concentrates on the Java application used as a backend. Using JSF or another server-based GUI framework is definitely out of scope. Completing the tutorial will take 6-8 hours
Difficulty:
An Eclipse / GlassFish / Java EE 6 Cookbook
An Eclipse / GlassFish / Java EE 6 Cookbook
A comprehensive tutorial about using Eclipse and the GlassFish v3 Java application server to implement Java EE 6 applications. It shows how to use different Eclipse project types for different purposes, how to do manual tests and how to implement automatic unit tests. You will not create a complete application, but more a vertical slice through an application. The idea is to just touch all relevant areas, not to finish a project.
Difficulty:
An Eclipse / GlassFish / Java EE 6 Cookbook
An Eclipse / GlassFish / Java EE 6 Cookbook
A comprehensive tutorial about using Eclipse and the GlassFish v3 Java application server to implement Java EE 6 applications. It shows how to use different Eclipse project types for different purposes, how to do manual tests and how to implement automatic unit tests. You will not create a complete application, but more a vertical slice through an application. The idea is to just touch all relevant areas, not to finish a project.
Difficulty:
Writing a JUnit testcase
Writing a JUnit testcase
This tutorial shows how to write a JUnit testcase.
Difficulty:
Enter into the Groovy-style world of metaprogramming
Enter into the Groovy-style world of metaprogramming
The ability to add new methods to classes dynamically at run time even Java classes, and even final Java classes is incredibly powerful. Whether used for production code, unit tests, or anything in between, Groovy's metaprogramming capabilities should pique the curiosity of even the most jaded Java developer.
Difficulty:
Faster and easier testing with EasyMock
Faster and easier testing with EasyMock
Join Elliotte Rusty Harold for a look at some hard unit tests made easy through mock objects more specifically, the EasyMock framework. This open source library saves you time and helps make your mock-object code concise and legible. See by example how EasyMock is a huge time saver that produces much shorter code at a minimal cost.
Difficulty:
Junit testing in Eclipse
Junit testing in Eclipse
This tutorial gives you an overview of the features of JUnit and shows a little example how you can write tests for your Java application using eclipse IDE.
Difficulty:
Unit testing Ajax apps with Java
Unit testing Ajax apps with Java
You might get a thrill out of writing Ajax applications, but unit testing them is surely painful. In this article, Andrew Glover takes on the downside of Ajax (one of them, anyway), which is the inherent challenge of unit testing asynchronous Web applications.
Difficulty:
Search Term(s) (2): unit test