Class TestDescriptorImpl

  • All Implemented Interfaces:
    java.io.Serializable, TestDescriptor

    public class TestDescriptorImpl
    extends java.lang.Object
    implements TestDescriptor
    Gathers description elements of a test: test name (aka test run id), execution date
    Author:
    Bruno Dillenseger
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Date date  
      protected java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      TestDescriptorImpl​(java.io.File testDir)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getDate()
      Gets the test run initialization date of the test run represented by current test descriptor
      java.lang.String getName()
      Gets the test run name of the test run represented by current test descriptor
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • date

        protected java.util.Date date
    • Constructor Detail

      • TestDescriptorImpl

        public TestDescriptorImpl​(java.io.File testDir)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • toString

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

        public java.lang.String getName()
        Description copied from interface: TestDescriptor
        Gets the test run name of the test run represented by current test descriptor
        Specified by:
        getName in interface TestDescriptor
        Returns:
        the test run name of the test run represented by current test descriptor
      • getDate

        public java.util.Date getDate()
        Description copied from interface: TestDescriptor
        Gets the test run initialization date of the test run represented by current test descriptor
        Specified by:
        getDate in interface TestDescriptor
        Returns:
        the test run initialization date of the test run represented by current test descriptor