Class TestResult
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.tests.TestResult
-
public class TestResult extends Object
This class define a test result.- Since:
- 0.8
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description TestResult(int score, Number value)
Public constructor.TestResult(int score, Number value, boolean percent)
Public constructor.TestResult(int score, String message)
Public constructor.TestResult(int score, String message, String type)
Public constructor.TestResult(Number value)
Public constructor.TestResult(Number value, boolean percent)
Public constructor.TestResult(String message)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
Get the message of the result.int
getScore()
Get the score of the testString
getType()
Get the type of the result message.
-
-
-
Constructor Detail
-
TestResult
public TestResult(int score, Number value, boolean percent)
Public constructor.- Parameters:
score
- score of a testpercent
- true if value is a percent
-
TestResult
public TestResult(int score, Number value)
Public constructor.- Parameters:
score
- score of a testvalue
- result message of a test
-
TestResult
public TestResult(Number value)
Public constructor.- Parameters:
value
- result message of a test
-
TestResult
public TestResult(Number value, boolean percent)
Public constructor.- Parameters:
value
- result message of a testpercent
- true if value is a percent
-
TestResult
public TestResult(int score, String message)
Public constructor.- Parameters:
score
- score of a testmessage
- result message of a test
-
TestResult
public TestResult(String message)
Public constructor.- Parameters:
message
- result message of a test
-
-
Method Detail
-
getScore
public int getScore()
Get the score of the test- Returns:
- the score of the test
-
getMessage
public String getMessage()
Get the message of the result.- Returns:
- Returns the message
-
getType
public String getType()
Get the type of the result message.- Returns:
- the type of the result message as a string
-
-