junit-support

Helpers and base test classes for junit

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

de.mklinger.commons
ArtifactId

ArtifactId

junit-support
Last Version

Last Version

0.12
Release Date

Release Date

Type

Type

jar
Description

Description

junit-support
Helpers and base test classes for junit
Project URL

Project URL

https://github.com/de-mklinger/junit-support
Project Organization

Project Organization

mklinger GmbH
Source Code Management

Source Code Management

https://github.com/de-mklinger/junit-support

Download junit-support

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.26
junit : junit jar 4.13
org.easymock : easymock jar 3.6

test (1)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.26

Project Modules

There are no modules declared in this project.

Junit-Support

Maven Central

What is it?

Junit-Support provides base classes for JUnit tests to cover common tests.

  • Test bean classes: Do all setters correspond to their getters? Do copy constructors cover all bean properties? Are equals() and hashCode() implemented correctly?
  • Test delegate classes: Do methods expected to call the delegate actually call the delegate?
  • Test exception classes: Do the standard exception constructors exist and work as expected?

Usage

Maven dependency:

<dependency>
    <groupId>de.mklinger.commons</groupId>
    <artifactId>junit-support</artifactId>
    <version>0.12</version>
</dependency>

For a given bean class MyBean a basic test looks like this:

public class MyBeanTest extends BeanTestBase<MyBean> {
}

License

Junit-Support is licensed under Apache License 2.0

de.mklinger.commons

mklinger GmbH

Versions

Version
0.12
0.11
0.10
0.9
0.8
0.7
0.6