hudson.plugins.PerfPublisher.Report
Class Test

java.lang.Object
  extended by hudson.plugins.PerfPublisher.Report.Test
All Implemented Interfaces:
java.lang.Comparable<Test>

public class Test
extends java.lang.Object
implements java.lang.Comparable<Test>

Model class representing one Test result.

Author:
Georges Bossert

Constructor Summary
Test()
           
Test(java.lang.String name, java.lang.String message, java.lang.String description, boolean executed, java.util.ArrayList<Source> sources, DataSet dataSetIn, DataSet dataSetOut, java.util.ArrayList<CommandLine> commandLine, java.util.ArrayList<Param> parameters, Success success, CompileTime compileTime, ExecutionTime executionTime, Performance performance)
           
 
Method Summary
 void addCommandLine(CommandLine cmdLine)
           
 void addLog(Log log)
           
 void addParameter(Param param)
           
 void addSource(Source source)
           
 void addTarget(Target target)
           
 int compareTo(Test test)
           
 java.lang.String getAdaptedName()
           
 java.util.ArrayList<CommandLine> getCommandLine()
           
 CompileTime getCompileTime()
           
 DataSet getDataSetIn()
           
 DataSet getDataSetOut()
           
 java.lang.String getDescription()
           
 ExecutionTime getExecutionTime()
           
 java.lang.String getHtmlDefinitionOfTargets()
           
 java.util.List<Log> getLogs()
           
 java.lang.String getMessage()
           
 java.lang.String getName()
           
 java.lang.String getNameForUrl()
           
 java.util.ArrayList<Param> getParameters()
           
 Performance getPerformance()
           
 Platform getPlateforme()
           
 java.lang.String getShortedMessage()
           
 java.util.ArrayList<Source> getSources()
           
 Success getSuccess()
           
 java.util.ArrayList<Target> getTargets()
           
 boolean isCompileTime()
           
 boolean isExecuted()
           
 boolean isExecutionTime()
           
 boolean isHasNotTimedOutButHasFailed()
           
 boolean isHasTimedOut()
           
 boolean isPerformance()
           
 boolean isSuccess()
           
 boolean isSuccessfull()
           
static java.lang.String ResolveTestNameInUrl(java.lang.String name)
           
 void setCommandLine(java.util.ArrayList<CommandLine> commandLine)
           
 void setCompileTime(CompileTime compileTime)
           
 void setDataSetIn(DataSet dataSetIn)
           
 void setDataSetOut(DataSet dataSetOut)
           
 void setDescription(java.lang.String description)
           
 void setExecuted(boolean executed)
           
 void setExecutionTime(ExecutionTime executionTime)
           
 void setIsCompileTime(boolean isCompileTime)
           
 void setIsExecutionTime(boolean isExecutionTime)
           
 void setIsPerformance(boolean isPerformance)
           
 void setIsSuccess(boolean isSuccess)
           
 void setLogs(java.util.List<Log> logs)
           
 void setMessage(java.lang.String message)
           
 void setName(java.lang.String name)
           
 void setParameters(java.util.ArrayList<Param> parameters)
           
 void setPerformance(Performance performance)
           
 void setPlateforme(Platform plateforme)
           
 void setSources(java.util.ArrayList<Source> sources)
           
 void setSuccess(Success success)
           
 void setTargets(java.util.ArrayList<Target> targets)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Test

public Test()

Test

public Test(java.lang.String name,
            java.lang.String message,
            java.lang.String description,
            boolean executed,
            java.util.ArrayList<Source> sources,
            DataSet dataSetIn,
            DataSet dataSetOut,
            java.util.ArrayList<CommandLine> commandLine,
            java.util.ArrayList<Param> parameters,
            Success success,
            CompileTime compileTime,
            ExecutionTime executionTime,
            Performance performance)
Parameters:
name -
executed -
sources -
dataSetIn -
dataSetOut -
commandLine -
parameters -
success -
compileTime -
executionTime -
performance -
Method Detail

getMessage

public java.lang.String getMessage()
Returns:
the message

getShortedMessage

public java.lang.String getShortedMessage()

setMessage

public void setMessage(java.lang.String message)
Parameters:
message - the message to set

getName

public java.lang.String getName()
Returns:
the name

getAdaptedName

public java.lang.String getAdaptedName()

getNameForUrl

public java.lang.String getNameForUrl()

ResolveTestNameInUrl

public static java.lang.String ResolveTestNameInUrl(java.lang.String name)

getTargets

public java.util.ArrayList<Target> getTargets()
Returns:
the targets

setTargets

public void setTargets(java.util.ArrayList<Target> targets)
Parameters:
targets - the targets to set

addTarget

public void addTarget(Target target)

getHtmlDefinitionOfTargets

public java.lang.String getHtmlDefinitionOfTargets()

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

isExecuted

public boolean isExecuted()
Returns:
the executed

getLogs

public java.util.List<Log> getLogs()
Returns:
the logs

setLogs

public void setLogs(java.util.List<Log> logs)
Parameters:
logs - the logs to set

addLog

public void addLog(Log log)

setExecuted

public void setExecuted(boolean executed)
Parameters:
executed - the executed to set

getSources

public java.util.ArrayList<Source> getSources()
Returns:
the sources

addSource

public void addSource(Source source)
Parameters:
source - the source to add

setSources

public void setSources(java.util.ArrayList<Source> sources)
Parameters:
sources - the sources to set

getDataSetIn

public DataSet getDataSetIn()
Returns:
the dataSetIn

setDataSetIn

public void setDataSetIn(DataSet dataSetIn)
Parameters:
dataSetIn - the dataSetIn to set

getDataSetOut

public DataSet getDataSetOut()
Returns:
the dataSetOut

setDataSetOut

public void setDataSetOut(DataSet dataSetOut)
Parameters:
dataSetOut - the dataSetOut to set

getCommandLine

public java.util.ArrayList<CommandLine> getCommandLine()
Returns:
the commandLine

addCommandLine

public void addCommandLine(CommandLine cmdLine)
Parameters:
cmdLine - the CommandLine to add

setCommandLine

public void setCommandLine(java.util.ArrayList<CommandLine> commandLine)
Parameters:
commandLine - the commandLine to set

getParameters

public java.util.ArrayList<Param> getParameters()
Returns:
the parameters

addParameter

public void addParameter(Param param)
Parameters:
param - add a parameter

setParameters

public void setParameters(java.util.ArrayList<Param> parameters)
Parameters:
parameters - the parameters to set

getSuccess

public Success getSuccess()
Returns:
the success

setSuccess

public void setSuccess(Success success)
Parameters:
success - the success to set

getCompileTime

public CompileTime getCompileTime()
Returns:
the compileTime

setCompileTime

public void setCompileTime(CompileTime compileTime)
Parameters:
compileTime - the compileTime to set

getExecutionTime

public ExecutionTime getExecutionTime()
Returns:
the executionTime

setExecutionTime

public void setExecutionTime(ExecutionTime executionTime)
Parameters:
executionTime - the executionTime to set

getPerformance

public Performance getPerformance()
Returns:
the performance

setPerformance

public void setPerformance(Performance performance)
Parameters:
performance - the performance to set

isSuccessfull

public boolean isSuccessfull()

isHasTimedOut

public boolean isHasTimedOut()

isHasNotTimedOutButHasFailed

public boolean isHasNotTimedOutButHasFailed()

isPerformance

public boolean isPerformance()
Returns:
the isPerformance

setIsPerformance

public void setIsPerformance(boolean isPerformance)
Parameters:
isPerformance - the isPerformance to set

isCompileTime

public boolean isCompileTime()
Returns:
the isCompileTime

setIsCompileTime

public void setIsCompileTime(boolean isCompileTime)
Parameters:
isCompileTime - the isCompileTime to set

isExecutionTime

public boolean isExecutionTime()
Returns:
the isExecutionTion

setIsExecutionTime

public void setIsExecutionTime(boolean isExecutionTime)
Parameters:
isExecutionTion - the isExecutionTion to set

isSuccess

public boolean isSuccess()
Returns:
the isSuccess

setIsSuccess

public void setIsSuccess(boolean isSuccess)
Parameters:
isSuccess - the isSuccess to set

getPlateforme

public Platform getPlateforme()
Returns:
the plateforme

setPlateforme

public void setPlateforme(Platform plateforme)
Parameters:
plateforme - the plateforme to set

getDescription

public java.lang.String getDescription()
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(Test test)
Specified by:
compareTo in interface java.lang.Comparable<Test>


Copyright © 2010. All Rights Reserved.