Package com.carrotsearch.randomizedtesting.rules
package com.carrotsearch.randomizedtesting.rules
-
ClassDescriptionSome useful constants.IdentityHashSet<KType>An identity hash set implemented using open addressing.Hash routines for primitive types.Don't allow
BeforeClass
andAfterClass
hook shadowing as it is most likely a user error.Don't allowBefore
andAfter
hook overrides as it is most likely a user error and will result in superclass methods not being called (requires manual chaining).Discovers shadowing or override relationships among methods annotated with any of the provided annotations.Estimates the size (memory representation) of Java objects.Cached information about a given class.JVM diagnostic features.Require assertionsTestRule
.An abstractStatement
that guarantees the execution ofStatementAdapter.afterAlways(java.util.List<java.lang.Throwable>)
even if an exception has been thrown from delegateStatement
.ATestRule
that ensures static, reference fields of the suite class (and optionally its superclasses) are cleaned up after a suite is completed.ATestRule
that ensures system properties remain unmodified by the nestedStatement
.ATestRule
which restores system properties from before the nestedStatement
.An abstractTestRule
that guarantees the execution ofTestRuleAdapter.afterAlways(java.util.List<java.lang.Throwable>)
even if an exception has been thrown from delegateStatement
.