libreccm/ccm-testutils/src/site/apt/index.apt

42 lines
1.5 KiB
Plaintext

LibreCCM TestUtils
The TestUtils module <<<ccm-testutils>>> package provides several utility
classes for writing tests for specific classes. This includes tests for
the implementations of <<<equals>>> and <<<hashCode>>> as well as
<<<toString>>>. Also a utility for testing datasets for DBUnit tests
is provided.
Other modules should import this module for the test
scope only:
+------------------------------------------------------------------------------+
...
<dependencies>
...
<dependency>
<groupId>org.libreccm</groupId>
<artifactId>ccm-testutils</artifactId>
<version>6.7.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
...
</dependencies>
+------------------------------------------------------------------------------+
At the moment the following utilities are provided:
* {{{./apidocs/index.html?org/libreccm/testutils/DatasetsVerifier.html} DatasetsVerifier}}
* {{{./apidocs/index.html?org/libreccm/testutils/EqualsVerifier.html} EqualsVerifier}}
* {{{./apidocs/index.html?org/libreccm/testutils/ToStringVerifier.html} ToStringVerifier}}
[]
Also their are some categories for use with <Category> feature of JUnit 4.
They are used to control which tests are executed. At the moment their are
two categories:
* {{{./apidocs/index.html?org/libreccm/tests/categories/IntegrationTest.html} IntegrationTest}}
* {{{./apidocs/index.html?org/libreccm/tests/categories/UnitTest.html} UnitTest}}