Skip to content

ph unittest support

Philip Helger edited this page Apr 8, 2026 · 1 revision

Lightweight unit test support utilities for JUnit 4.

Highlights:

  • TestHelper - common test assertions and verification utilities
  • DebugModeTestRule - JUnit 4 rule for toggling debug mode during tests

Maven usage

Add the following to your pom.xml to use this artifact (test scope):

<dependency>
  <groupId>com.helger.commons</groupId>
  <artifactId>ph-unittest-support</artifactId>
  <version>x.y.z</version>
  <scope>test</scope>
</dependency>

Clone this wiki locally