de.hilling.junit.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

test-db
Last Version

Last Version

1.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

junit add-on for simple testing of cdi components

Download test-db

How to add to project

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

Dependencies

provided (1)

Group / Artifact Type Version
javax.enterprise : cdi-api jar ${cdi-api.version}

test (4)

Group / Artifact Type Version
de.hilling.junit.cdi : cdi-test-core jar 1.2.0
org.apache.deltaspike.cdictrl : deltaspike-cdictrl-weld jar 1.8.0
org.jboss.weld.se : weld-se-core jar
org.slf4j : slf4j-jdk14 jar 1.7.5

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
1.2.0
1.1.0
1.0.0
0.13.1
0.13.0
0.12.1
0.12.0
0.11.1
0.10.2
0.10.1
0.10.0
0.9.0
0.0.8
0.0.7