org.apache.wicket.util.tester
Class Result

java.lang.Object
  extended by org.apache.wicket.util.tester.Result

public class Result
extends Object

A Result class.

Since:
1.2.6
Author:
unknown

Field Summary
static Result PASS
           
 
Constructor Summary
Result(boolean failed)
           
Result(boolean failed, String message)
           
 
Method Summary
static Result fail(String message)
          Returns a Result which failed.
 String getMessage()
          Retrieves the error message.
static Result pass()
          Returns a Result which passed.
 boolean wasFailed()
          Returns true if the Result was a failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PASS

public static final Result PASS
Constructor Detail

Result

public Result(boolean failed)

Result

public Result(boolean failed,
              String message)
Method Detail

fail

public static Result fail(String message)
Returns a Result which failed.

Parameters:
message - an error message
Returns:
a Result which failed

pass

public static Result pass()
Returns a Result which passed.

Returns:
a Result which passed

wasFailed

public boolean wasFailed()
Returns true if the Result was a failure.

Returns:
true if the Result was a failure

getMessage

public String getMessage()
Retrieves the error message.

Returns:
the error message


Copyright © 2006–2016 Apache Software Foundation. All rights reserved.