Package org.openjdk.jmc.test
Class MCTestCase
java.lang.Object
org.openjdk.jmc.test.MCTestCase
TestCase extended with convenience assert methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertArrayEqualsWithMoreInfo(String message, Object[] expecteds, Object[] actuals) static <T extends Comparable<T>>
voidassertBetween(String message, T min, T max, T actual) Asserts that aComparableis within the given (inclusive) range.static <T extends Comparable<T>>
voidassertBetween(T min, T max, T actual) Asserts that aComparableis within the given (inclusive) range.static <T extends Comparable<? super T>>
voidassertGreaterThan(String message, T lesserVal, T actual) Asserts that aComparableis greater than the given value.static <T extends Comparable<? super T>>
voidassertGreaterThan(T lesserVal, T actual) Asserts that aComparableis greater than the given value.static <T extends Comparable<T>>
voidassertLessThan(String message, T greaterVal, T actual) Asserts that aComparableis less than the given value.static <T extends Comparable<T>>
voidassertLessThan(T greaterVal, T actual) Asserts that aComparableis less than the given value.static voidassertMaskedEquals(long expected, long actual, long mask) Asserts that with respect to all bits in the mask, a long is equal to the given value.static voidassertMaskedEquals(String message, long expected, long actual, long mask) Asserts that with respect to all bits in the mask, a long is equal to the given value.static <T extends Comparable<T>>
voidAsserts that aComparableis less or equal than the given value.static <T extends Comparable<T>>
voidassertMax(T max, T actual) Asserts that aComparableis less or equal than the given value.static <T extends Comparable<T>>
voidAsserts that aComparableis greater or equal than the given value.static <T extends Comparable<T>>
voidassertMin(T min, T actual) Asserts that aComparableis greater or equal than the given value.static voidassertNull(Object object) ShadowingAssert.assertNull(Object)to provide a more useful error message.static voidassertNull(String message, Object object) ShadowingAssert.assertNull(String, Object)to provide a more useful error message.static voidfailNotEquals(String message, Object expected, Object actual) protected static Stringhex(long val) protected voidprotected voidprotected voidprotected void
-
Constructor Details
-
MCTestCase
public MCTestCase()
-
-
Method Details
-
assertNull
ShadowingAssert.assertNull(String, Object)to provide a more useful error message. -
assertNull
ShadowingAssert.assertNull(Object)to provide a more useful error message. -
failNotEquals
-
assertMaskedEquals
Asserts that with respect to all bits in the mask, a long is equal to the given value. If it is not an AssertionFailedError is thrown with the given message. -
assertMaskedEquals
public static void assertMaskedEquals(long expected, long actual, long mask) Asserts that with respect to all bits in the mask, a long is equal to the given value. -
hex
-
assertBetween
Asserts that aComparableis within the given (inclusive) range. If it is not an AssertionFailedError is thrown with the given message. -
assertBetween
Asserts that aComparableis within the given (inclusive) range. -
assertMax
Asserts that aComparableis less or equal than the given value. If it is not an AssertionFailedError is thrown with the given message. -
assertMax
Asserts that aComparableis less or equal than the given value. -
assertMin
Asserts that aComparableis greater or equal than the given value. If it is not an AssertionFailedError is thrown with the given message. -
assertMin
Asserts that aComparableis greater or equal than the given value. -
assertLessThan
Asserts that aComparableis less than the given value. If it is not an AssertionFailedError is thrown with the given message. -
assertLessThan
Asserts that aComparableis less than the given value. -
assertGreaterThan
public static <T extends Comparable<? super T>> void assertGreaterThan(String message, T lesserVal, T actual) Asserts that aComparableis greater than the given value. If it is not an AssertionFailedError is thrown with the given message. -
assertGreaterThan
Asserts that aComparableis greater than the given value. -
assertArrayEqualsWithMoreInfo
-
skipIfEarlierThan8u0
protected void skipIfEarlierThan8u0() -
skipIfEarlierThan7u40
protected void skipIfEarlierThan7u40() -
skipIfEarlierThan7u4
protected void skipIfEarlierThan7u4() -
skipIfEarlierThan7u0
protected void skipIfEarlierThan7u0()
-