org.codehaus.groovy.transform.powerassert
[Java] Class AssertionVerifier
java.lang.Object
org.codehaus.groovy.transform.powerassert.AssertionVerifier
public abstract class AssertionVerifier
extends Object
Verifies that assertions hold, throwing a PowerAssertionError
otherwise. Only meant to be called from code generated by the transformation.
- Authors:
- Peter Niederwieser
Method Summary |
static void
|
verify(Object truthValue, String text, ValueRecorder recorder)
Verifies that the given value is true according to Groovy truth,
throwing a PowerAssertionError with a cleaned-up stacktrace and
helpful detail message otherwise.
|
VERIFY_METHOD_NAME
public static final String VERIFY_METHOD_NAME
-
verify
public static void verify(Object truthValue, String text, ValueRecorder recorder)
- Verifies that the given value is true according to Groovy truth,
throwing a PowerAssertionError with a cleaned-up stacktrace and
helpful detail message otherwise.
- Parameters:
truthValue
- the value of an assertion's truth expressiontext
- the source text of the assertionrecorder
- a ValueRecorder used for rendering failed assertions
Copyright © 2003-2010 The Codehaus. All rights reserved.