Class TestUtils
java.lang.Object
org.opencastproject.elasticsearch.impl.TestUtils
Utility class containing a few helper methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisTest()Returnstrueif a test is currently going on.static voidEnables testing by setting a system property.
-
Method Details
-
startTesting
public static void startTesting()Enables testing by setting a system property. This method is used to add test specific code to production implementations while using a consistent methodology to determine testing status.Use
isTest()to determine whether testing has been turned on. -
isTest
public static boolean isTest()Returnstrueif a test is currently going on.- Returns:
trueif the current code is being executed as a test
-