gherkin.formatter.model
Class Result

java.lang.Object
  extended by gherkin.formatter.Mappable
      extended by gherkin.formatter.model.Result
All Implemented Interfaces:
Serializable

public class Result
extends Mappable

See Also:
Serialized Form

Field Summary
static String FAILED
           
static String PASSED
           
static Result SKIPPED
           
static Result UNDEFINED
           
 
Constructor Summary
Result(String status, Long duration, String errorMessage)
          Used when parsing JSON.
Result(String status, Long duration, Throwable error, Object dummy)
          Used at runtime
 
Method Summary
 Long getDuration()
           
 Throwable getError()
           
 String getErrorMessage()
           
 String getStatus()
           
 void replay(Reporter reporter)
           
 
Methods inherited from class gherkin.formatter.Mappable
toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKIPPED

public static final Result SKIPPED

UNDEFINED

public static final Result UNDEFINED

PASSED

public static final String PASSED
See Also:
Constant Field Values

FAILED

public static final String FAILED
See Also:
Constant Field Values
Constructor Detail

Result

public Result(String status,
              Long duration,
              Throwable error,
              Object dummy)
Used at runtime

Parameters:
status -
duration -
error -
dummy - only used to distinguish the constructor when used from JRuby (and null for error).

Result

public Result(String status,
              Long duration,
              String errorMessage)
Used when parsing JSON. TODO: constructing an Exception instance when parsing JSON might be better.

Parameters:
status -
duration -
errorMessage -
Method Detail

getStatus

public String getStatus()

getDuration

public Long getDuration()

getErrorMessage

public String getErrorMessage()

getError

public Throwable getError()

replay

public void replay(Reporter reporter)


Copyright © 2012. All Rights Reserved.