public abstract class AssertionViolation
extends AssertionError
Abstract base class for all assertion violations.
| Constructor and description |
|---|
protected AssertionViolation()Creates a violation without an explicit detail message and registers it with the current tracker. |
protected AssertionViolation(Object o)Creates a violation with an object-valued detail and registers it with the current tracker. |
protected AssertionViolation(boolean b)Creates a violation with a boolean detail and registers it with the current tracker. |
protected AssertionViolation(char c)Creates a violation with a character detail and registers it with the current tracker. |
protected AssertionViolation(int i)Creates a violation with an integer detail and registers it with the current tracker. |
protected AssertionViolation(long l)Creates a violation with a long detail and registers it with the current tracker. |
protected AssertionViolation(float v)Creates a violation with a floating-point detail and registers it with the current tracker. |
protected AssertionViolation(double v)Creates a violation with a double-precision detail and registers it with the current tracker. |
| Methods inherited from class | Name |
|---|---|
class AssertionError |
addSuppressed, equals, fillInStackTrace, getCause, getClass, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, hashCode, initCause, notify, notifyAll, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString, wait, wait, wait |
Creates a violation without an explicit detail message and registers it with the current tracker.
Creates a violation with an object-valued detail and registers it with the current tracker.
o - the detail object passed to AssertionErrorCreates a violation with a boolean detail and registers it with the current tracker.
b - the detail value passed to AssertionErrorCreates a violation with a character detail and registers it with the current tracker.
c - the detail value passed to AssertionErrorCreates a violation with an integer detail and registers it with the current tracker.
i - the detail value passed to AssertionErrorCreates a violation with a long detail and registers it with the current tracker.
l - the detail value passed to AssertionErrorCreates a violation with a floating-point detail and registers it with the current tracker.
v - the detail value passed to AssertionErrorCreates a violation with a double-precision detail and registers it with the current tracker.
v - the detail value passed to AssertionErrorCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.