Class TestHelpers
java.lang.Object
org.cyclops.integrateddynamics.core.test.TestHelpers
Helpers for tests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
assertEqual
(T actual, T expected, String ifEqual) Assertion for equal objects.static <T> void
assertNonEqual
(T actual, T expected, String ifNonEqual) Assertion for non equal objects.static <T> void
assertNonNull
(T actual, String ifNonNull) Assertion for non null objects.static <T> void
assertNull
(T actual, String ifNull) Assertion for null objects.static boolean
-
Constructor Details
-
TestHelpers
public TestHelpers()
-
-
Method Details
-
canRunIntegrationTests
public static boolean canRunIntegrationTests() -
assertEqual
Assertion for equal objects.- Type Parameters:
T
- The type.- Parameters:
actual
- Actual value.expected
- Expected value.ifEqual
- Message identifying the assertion.
-
assertNonEqual
Assertion for non equal objects.- Type Parameters:
T
- The type.- Parameters:
actual
- Actual value.expected
- Expected value.ifNonEqual
- Message identifying the assertion.
-
assertNull
Assertion for null objects.- Type Parameters:
T
- The type.- Parameters:
actual
- Actual value.ifNull
- Message identifying the assertion.
-
assertNonNull
Assertion for non null objects.- Type Parameters:
T
- The type.- Parameters:
actual
- Actual value.ifNonNull
- Message identifying the assertion.
-