andrewaylett / atunit

Run your unit tests with automatic DI and Mocking
Apache License 2.0
1 stars 0 forks source link

AtUnit

AtUnit minimizes boilerplate code in unit tests and guides test development by enforcing good practices.

Originally written by Logan Johnson, to whom go many thanks.

Mock Objects Integration

AtUnit integrates with JMock or EasyMock to provide mock objects:

... or you can use your own mock objects plug-in with two easy steps:

Container Integration

AtUnit integrates with Guice or Spring to take all of the work out of dependency-injected tests.

With Guice:

With Spring:

You can easily plug in other containers in two steps:

Get Started

The Example AtUnit Tests are the quickest way to get started with AtUnit. They demonstrate most permutations of supported containers and mock frameworks, and illustrate the various ways AtUnit makes writing tests easier.