junit-addon for easy and quick testing of cdi projects.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
cdi-test-api
cdi-test-core
docs
styles
.coveralls.yml
.gitignore
.travis.yml
LICENSE
README.md
pom.xml

README.md

Build Status Coverage (Sonar) Status (Sonar) Maintainability (Sonar) Maven Central

cdi-test

A test framework for CDI based Java applications

cdi-test is a junit-addon for easy and quick testing of cdi projects.

cdi-test is available as a JUnit 4 TestRunner in the 1.x Versions. Starting with 2.0 cdi-test is used as an Extension with JUnit 5.

cdi-test is available under the The Apache Software License, Version 2.0

Main features:

  • Fast because the CDI-Container is started only once for the whole scenario.
  • Well tested.
  • Supports mocks and test alternatives for CDI beans. These can be activated per test class.
  • Support for some EJB features to test JEE application components:
    • Inject EntityManager via @Inject or @PersistenceContext
    • Injection of Stateless Beans

Usage

See the Documentation on github pages.

LICENSE

Copyright 2015 Gunnar Hilling

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Sponsors

JProfiler supports open source projects with its full-featured Java Profiler. Click the JProfiler logo below to learn more.

File Management