Unit Testing Vs Integration Testing

A Unit test is a test case written by developers to verify small block of code which will not depend upon any other components or external resources, such as a database.

An Integration test is for verifying different pieces of the system work together when they are put together to build a complete system. These tests require external resources such as database instances or 3rd party APIs. JBoss Arquillian is a powerful tool for integration testing of Java EE applications.