Uploaded image for project: 'Cactus'
  1. Cactus
  2. CACTUS-225

Bad way of instanciating the class test a second time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7
    • None
    • Framework
    • None
    • found on windows with Orion server 2.0.5 and JDK 1.4.2

    Description

      According to the 'How it works' document, each test case is instanciated twice. Cactus seems to use the MyTestCase(String name) constructor, but one (I did) can use another constructor to instanciate its test cases.
      If this constructor initialize some fields and the default constructor does not, it may (and it has) result in a NullPointerException during the test.

      When Cactus makes the second instance, it should look for other constructors or some setters in order to make an exact copy of the test case.

      Attachments

        Activity

          People

            paranoiabla Petar Tahchiev
            djizeus Romain Thouvenin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: