Class Preconditions


  • @API(status=INTERNAL,
         since="1.0")
    public final class Preconditions
    extends Object
    Collection of utilities for asserting preconditions for method and constructor arguments.

    Each method in this class throws a PreconditionViolationException if the precondition is violated.

    DISCLAIMER

    These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!

    Since:
    1.0