TestEE.fi - junit5-all module

Functional testing for Java-EE.

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

fi.testee
ArtifactId

ArtifactId

testeefi-junit5-all
Last Version

Last Version

0.6.1
Release Date

Release Date

Type

Type

jar
Description

Description

TestEE.fi - junit5-all module
Functional testing for Java-EE.
Source Code Management

Source Code Management

https://github.com/dajudge/testee.fi

Download testeefi-junit5-all

How to add to project

<!-- https://jarcasting.com/artifacts/fi.testee/testeefi-junit5-all/ -->
<dependency>
    <groupId>fi.testee</groupId>
    <artifactId>testeefi-junit5-all</artifactId>
    <version>0.6.1</version>
</dependency>
// https://jarcasting.com/artifacts/fi.testee/testeefi-junit5-all/
implementation 'fi.testee:testeefi-junit5-all:0.6.1'
// https://jarcasting.com/artifacts/fi.testee/testeefi-junit5-all/
implementation ("fi.testee:testeefi-junit5-all:0.6.1")
'fi.testee:testeefi-junit5-all:jar:0.6.1'
<dependency org="fi.testee" name="testeefi-junit5-all" rev="0.6.1">
  <artifact name="testeefi-junit5-all" type="jar" />
</dependency>
@Grapes(
@Grab(group='fi.testee', module='testeefi-junit5-all', version='0.6.1')
)
libraryDependencies += "fi.testee" % "testeefi-junit5-all" % "0.6.1"
[fi.testee/testeefi-junit5-all "0.6.1"]

Dependencies

compile (8)

Group / Artifact Type Version
fi.testee : testeefi-core jar 0.6.1
fi.testee : testeefi-junit5 jar 0.6.1
fi.testee : testeefi-h2 jar 0.6.1
fi.testee : testeefi-mockito jar 0.6.1
fi.testee : testeefi-flyway jar 0.6.1
fi.testee : testeefi-eclipselink jar 0.6.1
fi.testee : testeefi-util-nopostconstruct jar 0.6.1
fi.testee : testeefi-util-resourcedef jar 0.6.1

test (2)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.1.7
org.junit.platform : junit-platform-launcher jar 1.0.0

Project Modules

There are no modules declared in this project.

TestEE.fi

TestEE.fi (as in "testify") is a lightweight functional testing framework for Java-EE applications.

By conveniently integrating a fully blown CDI implentation (TestEE.fi internally uses Weld, the CDI reference implementation) with much loved mocking frameworks like Mockito and EasyMock and proven database setup tools like Flyway and Liquibase it offers a natural way to write tests for your Java-EE application the same way you write your unit tests. And by integrating with test-runtimes like JUnit 4 & 5 or Cucumber JVM it allows you to run your tests directly from your preferred IDE and build tool - at speeds very close to unit-level testing.

Getting started

Getting started with TestEE.fi is really easy. First you need to add TestEE.fi to your project’s dependencies. In Maven this looks like the following snippet:

<dependencies>
    <dependency>
        <groupId>fi.testee</groupId>
        <artifactId>testeefi-junit4-all</artifactId>
        <version>0.6.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.1.7</version>
        <scope>test</scope>
    </dependency>
</dependencies>

If you’re using Gradle, the snippet would look like this:

repositories {
    mavenCentral()
}
dependencies {
	testCompile 'fi.testee:testeefi-junit4-all:0.6.1'
	testCompile 'ch.qos.logback:logback-classic:1.1.7'
}

All you need to do now is to annotate your JUnit 4 test case like this:

@RunWith(TestEEfi.class)
public class MyTest {
	@Mock
	private ExternalSystemBean externalSystem;
	@Inject
	private FacadeBean facadeToTest;
	
	@Test
	public void runTest() {
		// Your test code
	}
}

Introduction and tutorials

The series of blog articles "Functional testing Java-EE applications with TestEE.fi" serves the purpose of introductory tutorials very well:

Example projects

There's also a number of example projects based on a Gradle build that demonstrate the usage of TestEE.fi. You can find them in a separate repository.

Versions

Version
0.6.1
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.0