Cactus
  1. Cactus
  2. CACTUS-225

Bad way of instanciating the class test a second time

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      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.

        Activity

        Hide
        Vincent Massol added a comment -
        Show
        Vincent Massol added a comment - See also http://tinyurl.com/cfj2z
        Hide
        Nicolas Chalumeau added a comment -

        I see the link and think I can work on this...

        Just a question : is this solution have some consequences/advantage for the cactus 2 proposal?

        Show
        Nicolas Chalumeau added a comment - I see the link and think I can work on this... Just a question : is this solution have some consequences/advantage for the cactus 2 proposal?

          People

          • Assignee:
            Petar Tahchiev
            Reporter:
            Romain Thouvenin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development