[ https://issues.apache.org/jira/browse/CACTUS-225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Petar Tahchiev reassigned CACTUS-225: ------------------------------------- Assignee: Petar Tahchiev > Bad way of instanciating the class test a second time > ----------------------------------------------------- > > Key: CACTUS-225 > URL: https://issues.apache.org/jira/browse/CACTUS-225 > Project: Cactus > Issue Type: Bug > Components: Framework > Affects Versions: 1.7 > Environment: found on windows with Orion server 2.0.5 and JDK 1.4.2 > Reporter: Romain Thouvenin > Assignee: Petar Tahchiev > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: cactus-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: cactus-dev-h...@jakarta.apache.org