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
License
GNU Library or Lesser General Public License version 2.0 (LGPLv2)Follow Needle
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Needle!