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