hudson.plugins.javatest_report
Class TestObject<S extends TestObject<S>>

java.lang.Object
  extended by hudson.plugins.javatest_report.TestObject<S>
Type Parameters:
S - The derived type of TestCollection (the same design pattern as you seen in Enum)
All Implemented Interfaces:
hudson.model.ModelObject
Direct Known Subclasses:
TestCase, TestCollection

public abstract class TestObject<S extends TestObject<S>>
extends java.lang.Object
implements hudson.model.ModelObject

Common data applicable to all test model objects.

Setter methods are for Digester, and once created the test objects are immutable.

Author:
Rama Pulavarthi

Method Summary
 void addAttribute(java.lang.String name, java.lang.String value)
           
 int getAge()
          Gets the number of consecutive builds (including this) that this test case has been failing.
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
abstract  int getFailCount()
           
 int getFailedSince()
          If this test failed, then return the build number when this test started failing.
 java.lang.String getId()
           
 java.lang.String getName()
           
 hudson.model.AbstractBuild getOwner()
           
 S getPreviousResult()
          Gets the counter part of this TestObject in the previous run.
abstract  int getSkippedCount()
           
 Status getStatus()
           
 java.lang.String getStatusMessage()
           
abstract  int getTotalCount()
           
 void setDescription(java.lang.String description)
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
           
 void setStatusString(java.lang.String status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getDisplayName

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

getOwner

public hudson.model.AbstractBuild getOwner()

getFailedSince

public int getFailedSince()
If this test failed, then return the build number when this test started failing.


getAge

public int getAge()
Gets the number of consecutive builds (including this) that this test case has been failing.


getPreviousResult

public S getPreviousResult()
Gets the counter part of this TestObject in the previous run.

Returns:
null if no such counter part exists.

getStatus

public Status getStatus()

setStatusString

public void setStatusString(java.lang.String status)

addAttribute

public void addAttribute(java.lang.String name,
                         java.lang.String value)

getStatusMessage

public java.lang.String getStatusMessage()

getTotalCount

public abstract int getTotalCount()

getFailCount

public abstract int getFailCount()

getSkippedCount

public abstract int getSkippedCount()


Copyright © 2004-2011. All Rights Reserved.