org.jenkinsci.plugins.cucumber.jsontestsupport
Class BeforeAfterResult

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.tasks.junit.TestObject
          extended by hudson.tasks.test.TestObject
              extended by hudson.tasks.test.TestResult
                  extended by org.jenkinsci.plugins.cucumber.jsontestsupport.BeforeAfterResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, Serializable

public class BeforeAfterResult
extends hudson.tasks.test.TestResult

Represents a Before or After belonging to a Scenario. Although this is a test Object as it is a background it is not intended for individual Display.

Author:
James Nord
See Also:
Serialized Form

Constructor Summary
BeforeAfterResult(gherkin.formatter.model.Match match, gherkin.formatter.model.Result result)
           
 
Method Summary
 hudson.tasks.test.TestResult findCorrespondingResult(String id)
           
 String getDisplayName()
           
 float getDuration()
           
 int getFailCount()
           
 String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
           
 hudson.tasks.test.TestObject getParent()
           
 int getPassCount()
           
 int getSkipCount()
           
 
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getPreviousResult, getResultInBuild, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent, setParentAction, tally, toPrettyString
 
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeforeAfterResult

public BeforeAfterResult(gherkin.formatter.model.Match match,
                         gherkin.formatter.model.Result result)
Method Detail

getName

public String getName()
Overrides:
getName in class hudson.tasks.test.TestObject

getFailCount

public int getFailCount()
Overrides:
getFailCount in class hudson.tasks.test.TestResult

getSkipCount

public int getSkipCount()
Overrides:
getSkipCount in class hudson.tasks.test.TestResult

getPassCount

public int getPassCount()
Overrides:
getPassCount in class hudson.tasks.test.TestResult

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Specified by:
getOwner in class hudson.tasks.test.TestObject

getParent

public hudson.tasks.test.TestObject getParent()
Overrides:
getParent in class hudson.tasks.test.TestObject

findCorrespondingResult

public hudson.tasks.test.TestResult findCorrespondingResult(String id)
Specified by:
findCorrespondingResult in class hudson.tasks.test.TestObject

getDisplayName

public String getDisplayName()

getDuration

public float getDuration()
Overrides:
getDuration in class hudson.tasks.test.TestResult


Copyright © 2013. All Rights Reserved.