Class TestHelpers

java.lang.Object
org.cyclops.integrateddynamics.core.test.TestHelpers

public class TestHelpers extends Object
Helpers for tests
  • Constructor Details

    • TestHelpers

      public TestHelpers()
  • Method Details

    • canRunIntegrationTests

      public static boolean canRunIntegrationTests()
    • assertEqual

      public static <T> void assertEqual(T actual, T expected, String ifEqual)
      Assertion for equal objects.
      Type Parameters:
      T - The type.
      Parameters:
      actual - Actual value.
      expected - Expected value.
      ifEqual - Message identifying the assertion.
    • assertNonEqual

      public static <T> void assertNonEqual(T actual, T expected, String ifNonEqual)
      Assertion for non equal objects.
      Type Parameters:
      T - The type.
      Parameters:
      actual - Actual value.
      expected - Expected value.
      ifNonEqual - Message identifying the assertion.
    • assertNull

      public static <T> void assertNull(T actual, String ifNull)
      Assertion for null objects.
      Type Parameters:
      T - The type.
      Parameters:
      actual - Actual value.
      ifNull - Message identifying the assertion.
    • assertNonNull

      public static <T> void assertNonNull(T actual, String ifNonNull)
      Assertion for non null objects.
      Type Parameters:
      T - The type.
      Parameters:
      actual - Actual value.
      ifNonNull - Message identifying the assertion.