public class UtilityClassChecker
extends java.lang.Object
| Constructor and Description |
|---|
UtilityClassChecker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertThatClassIsUtility(java.lang.Class<?> clazz)
Assert that the given class adheres to the utility class rules.
|
void |
describeMismatch(org.hamcrest.Description description)
Describe why an error was reported.
|
void |
describeTo(org.hamcrest.Description description)
Describe the source object that caused an error, using a Hamcrest
Matcher style interface.
|
public void describeMismatch(org.hamcrest.Description description)
description - the Description object to use for reporting the
mismatchpublic void describeTo(org.hamcrest.Description description)
description - the Description object to use to report the "to"
objectpublic static void assertThatClassIsUtility(java.lang.Class<?> clazz)
clazz - the class to checkjava.lang.AssertionError - if the class is not a valid
utility class