Package org.apache.wicket.util.tester
Class Result
- java.lang.Object
-
- org.apache.wicket.util.tester.Result
-
public class Result extends java.lang.Object
AResult
class.- Since:
- 1.2.6
- Author:
- unknown
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Result
fail(java.lang.String message)
Returns aResult
which failed.java.lang.String
getMessage()
Retrieves the error message.static Result
pass()
Returns aResult
which passed.boolean
wasFailed()
Returnstrue
if theResult
was a failure.
-
-
-
Field Detail
-
PASS
public static final Result PASS
-
-
Method Detail
-
fail
public static Result fail(java.lang.String message)
Returns aResult
which failed.- Parameters:
message
- an error message- Returns:
- a
Result
which failed
-
pass
public static Result pass()
Returns aResult
which passed.- Returns:
- a
Result
which passed
-
wasFailed
public boolean wasFailed()
Returnstrue
if theResult
was a failure.- Returns:
true
if theResult
was a failure
-
getMessage
public java.lang.String getMessage()
Retrieves the error message.- Returns:
- the error message
-
-