Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

Bumps [h2]( from 2.0.206 to 2.1.210.
- [Release notes](
- [Commits](h2database/h2database@version-2.0.206...version-2.1.210)

- dependency-name: com.h2database:h2
  dependency-type: direct:development

Signed-off-by: dependabot[bot] <>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]>

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
January 4, 2022 16:00
January 4, 2022 10:51
February 11, 2014 22:08
March 31, 2012 20:45
January 4, 2022 10:56

Build Status Maven Central

Need(le) for Speed - Effective Unit Testing for Java EE


Needle4j is a lightweight framework for testing Java EE components outside of the container in isolation. It reduces the test setup code by analysing dependencies and automatic injection of mock objects. It will thus maximize the speed of development as well as the execution of unit tests.

Needle Coffee Cups

Core Features:

  • Instantiation of @ObjectUnderTest Components

  • Constructor, Method and Field based dependency injection

  • Injection of Mock objects by default

  • Extensible by providing custom injection providers

  • Wiring of object graphs

  • Database testing via JPA Provider, e.g. EclipseLink or Hibernate

  • EntityManager creation and injection

  • Execute optional database operations during test setup and tear down

  • Transaction Utilities

  • Provide Utilities for Reflection, e.g. for private method invocation or field access

  • Needle can be used with JUnit or TestNG.

  • It supports EasyMock and Mockito out-of-the-box.

Getting started

Add the following dependencies to your pom.xml file to get started using Needle:


(plus junit, mockito, ...)

Implementing your first Needle Test:

public class UserDaoTest {

    public DatabaseRule databaseRule = new DatabaseRule();

    public NeedleRule needleRule = new NeedleRule(databaseRule);

    private UserDao userDao;

    public void testFindByUsername() throws Exception {
        final User user = new UserTestdataBuilder(

        User userFromDb =
            userDao.findBy(user.getUsername(), user.getPassword());

        Assert.assertEquals(user.getId(), userFromDb.getId());

For the documentation and more examples please refer to the maven site.


Needle is licensed under GNU Lesser General Public License (LGPL) version 2.1 or later.

Needle URLs

Release Nodes

Version 3.0 - Upgrade to JDK 11 and Hibernate 5.6, Removal of deprecated code, cleanup code

Version 2.2 -

Previous Versions -