Needle 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.


Follow us on Twitter (@NeedleProject)

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

Project Samples

Project Activity

See All Activity >

License

GNU Library or Lesser General Public License version 2.0 (LGPLv2)

Follow Needle

Needle Web Site

Other Useful Business Software
Papirfly: Best user-friendly DAM and Content Creation Software Icon
Papirfly: Best user-friendly DAM and Content Creation Software

The #1 solution to create and manage content. On‑brand. At scale.

Papirfly provides a single online destination for all your employees and other stakeholders who are engaging with your brand, ensuring consistency in all aspects of their communications. Teams can produce infinite studio-standard marketing materials from bespoke templates, store, share and adapt them for their own markets and stay firmly educated on the brand’s purpose, guidelines and evolution – with no specialist skills or agency help necessary.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Needle!

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Related Categories

Java Software Testing Tool, Java Frameworks, Java Object Oriented Software

Registered

2010-02-24