org.tap4j.plugin
Class TapResult

java.lang.Object
  extended by org.tap4j.plugin.TapResult
All Implemented Interfaces:
hudson.model.ModelObject, java.io.Serializable

public class TapResult
extends java.lang.Object
implements hudson.model.ModelObject, java.io.Serializable

Since:
1.0
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br
See Also:
Serialized Form

Constructor Summary
TapResult(java.lang.String name, hudson.model.AbstractBuild<?,?> owner, java.util.List<TestSetMap> testSets)
           
 
Method Summary
 java.lang.String createDiagnosticTable(java.util.Map<java.lang.String,java.lang.Object> diagnostic)
          Called from TapResult/index..jelly
 int getBailOuts()
           
 java.lang.String getContents(java.lang.String fileName)
           
 java.lang.String getDisplayName()
           
 int getFailed()
           
 java.lang.String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
           
 java.util.List<TestSetMap> getParseErrorTestSets()
           
 int getPassed()
           
 int getSkipped()
           
 java.util.List<TestSetMap> getTestSets()
           
 int getTotal()
           
 boolean hasParseErrors()
           
 boolean isBailOut(java.lang.Object tapResult)
           
 boolean isEmptyTestSet()
           
 boolean isTestResult(java.lang.Object tapResult)
           
 void setOwner(hudson.model.AbstractBuild<?,?> owner)
           
 void tally()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TapResult

public TapResult(java.lang.String name,
                 hudson.model.AbstractBuild<?,?> owner,
                 java.util.List<TestSetMap> testSets)
Method Detail

tally

public void tally()

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()

setOwner

public void setOwner(hudson.model.AbstractBuild<?,?> owner)
Parameters:
owner - the owner to set

getTestSets

public java.util.List<TestSetMap> getTestSets()

isEmptyTestSet

public boolean isEmptyTestSet()

getParseErrorTestSets

public java.util.List<TestSetMap> getParseErrorTestSets()
Returns:
the parseErrorTestSets

hasParseErrors

public boolean hasParseErrors()

getFailed

public int getFailed()

getSkipped

public int getSkipped()

getPassed

public int getPassed()

getBailOuts

public int getBailOuts()

getTotal

public int getTotal()

createDiagnosticTable

public java.lang.String createDiagnosticTable(java.util.Map<java.lang.String,java.lang.Object> diagnostic)
Called from TapResult/index..jelly


isTestResult

public boolean isTestResult(java.lang.Object tapResult)

isBailOut

public boolean isBailOut(java.lang.Object tapResult)

getName

@Exported(visibility=999)
public java.lang.String getName()
Returns:
the name

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject

getContents

public java.lang.String getContents(java.lang.String fileName)


Copyright © 2011-2012 Jenkins. All Rights Reserved.