public class Result extends Object
Result class.| Constructor and Description |
|---|
Result(boolean failed) |
Result(boolean failed,
String message) |
public static final Result PASS
public Result(boolean failed)
public Result(boolean failed,
String message)
public static Result fail(String message)
Result which failed.message - an error messageResult which failedpublic static Result pass()
Result which passed.Result which passedpublic boolean wasFailed()
true if the Result was a failure.true if the Result was a failurepublic String getMessage()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.