Package org.opennms.netmgt.dao
Class TestRegistry
- java.lang.Object
-
- org.opennms.netmgt.dao.TestRegistry
-
public class TestRegistry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TestRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.function.Consumer<T>
getTest(java.lang.Class<T> type)
boolean
isIgnored(java.lang.Class clazz)
boolean
isTested(java.lang.Class clazz)
void
markAsRun(java.lang.Class type)
TestRegistry
withIgnoredClass(java.lang.Class<?>... classesToIgnore)
<T> TestRegistry
withTest(java.lang.Class<T> clazz, java.util.function.Consumer<T> consumer)
-
-
-
Method Detail
-
withIgnoredClass
public TestRegistry withIgnoredClass(java.lang.Class<?>... classesToIgnore)
-
withTest
public <T> TestRegistry withTest(java.lang.Class<T> clazz, java.util.function.Consumer<T> consumer)
-
isTested
public boolean isTested(java.lang.Class clazz)
-
isIgnored
public boolean isIgnored(java.lang.Class clazz)
-
getTest
public <T> java.util.function.Consumer<T> getTest(java.lang.Class<T> type)
-
markAsRun
public void markAsRun(java.lang.Class type)
-
-