Class TestUtils

java.lang.Object
org.opencastproject.elasticsearch.impl.TestUtils

public final class TestUtils extends Object
Utility class containing a few helper methods.
  • 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()
      Returns true if a test is currently going on.
      Returns:
      true if the current code is being executed as a test