Class TestResult


  • public class TestResult
    extends Object
    This class define a test result.
    Since:
    0.8
    Author:
    Laurent Jourdren
    • Constructor Detail

      • TestResult

        public TestResult​(int score,
                          Number value,
                          boolean percent)
        Public constructor.
        Parameters:
        score - score of a test
        percent - true if value is a percent
      • TestResult

        public TestResult​(int score,
                          Number value)
        Public constructor.
        Parameters:
        score - score of a test
        value - 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 test
        percent - true if value is a percent
      • TestResult

        public TestResult​(int score,
                          String message)
        Public constructor.
        Parameters:
        score - score of a test
        message - result message of a test
      • TestResult

        public TestResult​(String message)
        Public constructor.
        Parameters:
        message - result message of a test
      • TestResult

        public TestResult​(int score,
                          String message,
                          String type)
        Public constructor.
        Parameters:
        score - score of a test
        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