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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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