com.atlassian.bamboo.index
Class TestCaseResultDocument

java.lang.Object
  extended by com.atlassian.bamboo.index.TestCaseResultDocument
All Implemented Interfaces:
TestCaseResult, ResultStatisticsProvider

public class TestCaseResultDocument
extends java.lang.Object
implements TestCaseResult


Field Summary
static java.lang.String DOCTYPE_TEST_CASE_RESULT
           
static java.lang.String FIELD_ACTUAL_METHOD_NAME
           
static java.lang.String FIELD_BUILD_ID
           
static java.lang.String FIELD_BUILD_NUMBER
           
static java.lang.String FIELD_CLASS_NAME
           
static java.lang.String FIELD_DELTA_STATE
           
static java.lang.String FIELD_DOC_TYPE
           
static java.lang.String FIELD_DURATION
           
static java.lang.String FIELD_ERRORS
           
static java.lang.String FIELD_METHOD_DESC
           
static java.lang.String FIELD_STATE
           
static java.lang.String FIELD_TIME_TO_FIX
           
static java.lang.String FIELD_TIMESTAMP
           
static java.lang.String FIELD_TIMESTAMP_DAY
           
 
Constructor Summary
TestCaseResultDocument(org.apache.lucene.document.Document doc)
           
 
Method Summary
 java.lang.String getActualMethodName()
           
 java.util.Date getBuildDate()
           
 long getBuildId()
           
 int getBuildNumber()
           
 BuildState getBuildState()
           
 java.lang.String getClassName()
           
 DeltaState getDeltaState()
           
static org.apache.lucene.document.Document getDocument(TestCaseResultWrapper testCase, BuildResultsSummary summary, Build plan)
           
 double getDurationInSeconds()
           
 java.util.List getErrors()
           
 java.lang.String getKey()
           
 java.lang.String getMethodName()
           
 java.lang.String getShortClassName()
           
 java.lang.Long getTimeToFix()
           
 boolean isFailed()
           
 boolean isSuccessful()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_BUILD_NUMBER

public static final java.lang.String FIELD_BUILD_NUMBER
See Also:
Constant Field Values

FIELD_BUILD_ID

public static final java.lang.String FIELD_BUILD_ID
See Also:
Constant Field Values

FIELD_STATE

public static final java.lang.String FIELD_STATE
See Also:
Constant Field Values

FIELD_TIMESTAMP

public static final java.lang.String FIELD_TIMESTAMP
See Also:
Constant Field Values

FIELD_TIMESTAMP_DAY

public static final java.lang.String FIELD_TIMESTAMP_DAY
See Also:
Constant Field Values

FIELD_DOC_TYPE

public static final java.lang.String FIELD_DOC_TYPE
See Also:
Constant Field Values

FIELD_ACTUAL_METHOD_NAME

public static final java.lang.String FIELD_ACTUAL_METHOD_NAME
See Also:
Constant Field Values

FIELD_CLASS_NAME

public static final java.lang.String FIELD_CLASS_NAME
See Also:
Constant Field Values

FIELD_METHOD_DESC

public static final java.lang.String FIELD_METHOD_DESC
See Also:
Constant Field Values

FIELD_ERRORS

public static final java.lang.String FIELD_ERRORS
See Also:
Constant Field Values

DOCTYPE_TEST_CASE_RESULT

public static final java.lang.String DOCTYPE_TEST_CASE_RESULT
See Also:
Constant Field Values

FIELD_DURATION

public static final java.lang.String FIELD_DURATION
See Also:
Constant Field Values

FIELD_DELTA_STATE

public static final java.lang.String FIELD_DELTA_STATE
See Also:
Constant Field Values

FIELD_TIME_TO_FIX

public static final java.lang.String FIELD_TIME_TO_FIX
See Also:
Constant Field Values
Constructor Detail

TestCaseResultDocument

public TestCaseResultDocument(org.apache.lucene.document.Document doc)
Method Detail

getDocument

public static org.apache.lucene.document.Document getDocument(TestCaseResultWrapper testCase,
                                                              BuildResultsSummary summary,
                                                              Build plan)

getBuildId

public long getBuildId()

getBuildState

public BuildState getBuildState()
Specified by:
getBuildState in interface ResultStatisticsProvider

getBuildNumber

public int getBuildNumber()
Specified by:
getBuildNumber in interface ResultStatisticsProvider

getKey

public java.lang.String getKey()

getActualMethodName

public java.lang.String getActualMethodName()
Specified by:
getActualMethodName in interface TestCaseResult

getMethodName

public java.lang.String getMethodName()
Specified by:
getMethodName in interface TestCaseResult

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in interface TestCaseResult

getShortClassName

public java.lang.String getShortClassName()
Specified by:
getShortClassName in interface TestCaseResult

getErrors

public java.util.List getErrors()
Specified by:
getErrors in interface TestCaseResult

getDurationInSeconds

public double getDurationInSeconds()
Specified by:
getDurationInSeconds in interface ResultStatisticsProvider

getBuildDate

public java.util.Date getBuildDate()
Specified by:
getBuildDate in interface ResultStatisticsProvider

getDeltaState

public DeltaState getDeltaState()
Specified by:
getDeltaState in interface TestCaseResult

getTimeToFix

public java.lang.Long getTimeToFix()
Specified by:
getTimeToFix in interface TestCaseResult

isFailed

public boolean isFailed()
Specified by:
isFailed in interface TestCaseResult

isSuccessful

public boolean isSuccessful()
Specified by:
isSuccessful in interface TestCaseResult


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.