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

junit add-on for simple testing of cdi components

License

License

Categories

Categories

JUnit Unit Testing Cucumber Application Testing & Monitoring
GroupId

GroupId

de.hilling.junit.cdi
ArtifactId

ArtifactId

cdi-test-cucumber
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

junit add-on for simple testing of cdi components

Download cdi-test-cucumber

How to add to project

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

Dependencies

compile (5)

Group / Artifact Type Version
info.cukes : cucumber-java jar 1.2.2
org.apache.deltaspike.core : deltaspike-core-api jar 1.8.2
org.apache.deltaspike.cdictrl : deltaspike-cdictrl-api jar 1.8.2
info.cukes : cucumber-junit jar 1.2.2
de.hilling.junit.cdi : cdi-test-core jar 2.0.0

provided (1)

Group / Artifact Type Version
javax.enterprise : cdi-api jar 2.0

test (5)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-engine jar 5.2.0
org.jboss.weld.se : weld-se-core jar
org.apache.deltaspike.core : deltaspike-core-impl jar 1.8.2
org.apache.deltaspike.cdictrl : deltaspike-cdictrl-weld jar 1.8.2
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
2.0.0
1.2.2
1.2.1
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