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()
          Gets the total number of failed tests.
 String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
           
 hudson.tasks.test.TestObject getParent()
           
 int getPassCount()
          Gets the total number of passed tests.
 int getSkipCount()
          Gets the total number of skipped tests.
 
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getPreviousResult, getResultInRun, getSkippedTests, getStderr, getStdout, getTitle, isPassed, setParent, setParentAction, tally, toPrettyString
 
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
 
Methods inherited from class hudson.tasks.junit.TestObject
getRun
 
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

getPassCount

public int getPassCount()
Gets the total number of passed tests.

Overrides:
getPassCount in class hudson.tasks.test.TestResult

getFailCount

public int getFailCount()
Gets the total number of failed tests.

Overrides:
getFailCount in class hudson.tasks.test.TestResult

getSkipCount

public int getSkipCount()
Gets the total number of skipped tests.

Overrides:
getSkipCount in class hudson.tasks.test.TestResult

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Overrides:
getOwner in class hudson.tasks.junit.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-2014. All Rights Reserved.