Community
Participate
Working Groups
Description text for JUnit test methods is not used as JavaDoc comment text in generated Java method. The test method description text should be used as the JavaDoc comment text in generated Java method since it describes the test method. Using the TPTP_v4_1_0_200509260100 driver, create a TPTP JUnit test, create a test method and add some description text. Add an invocation to the test method as a behavior and open the generate Java test suite class. Note that the JavaDoc comment does not contain the test method's description text.
Is this defect still intended for TPTP V4.2.0?
(In reply to comment #1) My intent is still to fix it for i2.
After investigation, the fix for this bug cannot be contained in i2, and the changes it implies require architectural changes (see bugzilla 134254). To be accurate, the method description is used in the javadoc for the generated Java method, only if this method is first created in the model. However, the javadoc comment is not updated if the method description is changed after the java method has been generated. The (ugly) work-around is to delete the method from the code, then save the model again. Updating the javadoc would require to use another JDT tooling (AST rather than the JDT model). Retargetting to the next release (because of the dependency on the architectural change).
Fixed Description in the model is reflected to the java source when the test suite is saved. And model description is updated if the user modifies the javadoc.
ACTION: Please verify/close this defect.
Verified on TPTP-4.3.0-200611070100 driver.