de.hilling.junit.cdi:cdi-test-db

junit add-on for simple testing of cdi components

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

de.hilling.junit.cdi
ArtifactId

ArtifactId

cdi-test-db
Last Version

Last Version

0.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

junit add-on for simple testing of cdi components

Download cdi-test-db

How to add to project

<!-- https://jarcasting.com/artifacts/de.hilling.junit.cdi/cdi-test-db/ -->
<dependency>
    <groupId>de.hilling.junit.cdi</groupId>
    <artifactId>cdi-test-db</artifactId>
    <version>0.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/de.hilling.junit.cdi/cdi-test-db/
implementation 'de.hilling.junit.cdi:cdi-test-db:0.9.0'
// https://jarcasting.com/artifacts/de.hilling.junit.cdi/cdi-test-db/
implementation ("de.hilling.junit.cdi:cdi-test-db:0.9.0")
'de.hilling.junit.cdi:cdi-test-db:jar:0.9.0'
<dependency org="de.hilling.junit.cdi" name="cdi-test-db" rev="0.9.0">
  <artifact name="cdi-test-db" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.hilling.junit.cdi', module='cdi-test-db', version='0.9.0')
)
libraryDependencies += "de.hilling.junit.cdi" % "cdi-test-db" % "0.9.0"
[de.hilling.junit.cdi/cdi-test-db "0.9.0"]

Dependencies

compile (3)

Group / Artifact Type Version
de.hilling.junit.cdi : cdi-test-core jar 0.9.0
junit : junit jar 4.11
org.apache.commons : commons-io jar 1.3.2

provided (2)

Group / Artifact Type Version
javax.enterprise : cdi-api jar 1.1
javax.annotation : javax.annotation-api jar 1.2

test (2)

Group / Artifact Type Version
org.apache.deltaspike.cdictrl : deltaspike-cdictrl-weld jar 1.3.0
org.jboss.weld.se : weld-se-core jar ${weld.version}

Project Modules

There are no modules declared in this project.

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 Eclipse Microprofile Config via https://github.com/guhilling/cdi-test-microprofile.
  • 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.

JProfiler

Versions

Version
0.9.0
0.0.8
0.0.7