Derby JUnit Helper is a utility to allow testing JDBC related code against Apache Derby embedded instances using JUnit version 4.x.

The library allows the user to configure an embedded Derby instance as an External Resource which can be added to a test class using the Rules annotation, with initialization scripts; and JUnit managing the initialization and de-initialization of the database instance.

The library also comes with some utilities to manage the running instance, running SQL scripts against the instance (or any derby instance for that matter), etc. More details are in the user documents.

User Guide

See the User Manual for the user guide.

Source Code, Issues and Support

This module is part of the Development Entropy JUnit Helper project. See the project’s homepage for details on source repository, issue tracker, continuous integration service, etc. That page also has details regarding the project binary (Maven 2) repository.

To add this module as a dependency to your project, see the generated Dependency Information page. Note: As this module is meant to aid in unit testing, if your project is using Maven for your builds, you probably are OK just adding it with <scope>test</scope>.

Attributions

Apache®, Apache DB®, Apache Derby®, Apache Logging®, Apache Log4j®, Log4j®, the Derby hat logo, the Apache Logging project logo and the Apache feather logo are registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. Copyright owned by JUnit.

The JNDI DataSource implementation is inspired by Randy Carver’s post Injecting JNDI datasources for JUnit Tests outside of a container.

Back to top

Version: 1.0-alpha.1-SNAPSHOT. Last Published: 21 Dec 2016.

Reflow Maven skin by Andrius Velykis.