Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 98939 - Unused import statements remain in generated test suite class when removing behaviors from the test suite.
Summary: Unused import statements remain in generated test suite class when removing b...
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Slauenwhite CLA
QA Contact:
URL:
Whiteboard: housecleaned462
Keywords:
Depends on: 134254
Blocks:
  Show dependency tree
 
Reported: 2005-06-08 10:02 EDT by Paul Slauenwhite CLA
Modified: 2016-05-05 11:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2005-06-08 10:02:15 EDT
Unused import statements remain in generated test suite class when removing 
behaviors from the test suite.

For example, create a loop in the Behavior tabbed pane of the JUnit test suite 
editor, the code generator adds the loop to the generated test suite class and 
the necessary import (import junit.extensions.RepeatedTest;), however, when the 
user removes the same loop, the import statements remains in the generated test 
suite class.
Comment 1 Julien Canches CLA 2006-04-11 09:46:45 EDT
Deferring to i3.
Comment 2 Julien Canches CLA 2006-04-12 11:26:26 EDT
Need the architectural change described in bugzilla 134254 to implement this (the JDT model does not allow to compute unused imports, this is only feasible with AST). Deferring to 4.3.
Comment 3 Paul Slauenwhite CLA 2007-01-16 10:26:14 EST
Reassigning to the component leads to triage for 4.4.
Comment 4 Paul Slauenwhite CLA 2007-01-26 08:25:33 EST
Targeting to future since not containable in 4.4.
Comment 5 Paul Slauenwhite CLA 2007-01-26 09:01:33 EST
As discussed on this week's Test Project call (January 22, 2007), the Test Project will focus on existing P1 - P2/Blocker - Major and P1/Normal and test creation/automation defects (omitting defects dependant on outstanding features) in TPTP 4.4.  All other Test Project defects have been targeted to future.

If this defect has been targeted to future and you/originator feel it should be completed in 4.4, please provide the necessary reason as a reply to this comment or a post to the Test Project mailing list (tptp-test-tooling-dev@eclipse.org).  We will collectively triage and assess our resources to determine a case-by-case decision. 
Comment 6 Paul Slauenwhite CLA 2007-01-26 09:04:02 EST
Correction:  The Test Project mailing list is tptp-testing-tools-dev@eclipse.org.
Comment 7 Paul Slauenwhite CLA 2008-01-24 11:50:25 EST
In org.eclipse.hyades.test.tools.core.internal.java.codegen.JUnitGenerator.createSourceUpdateChange(IFile, SubProgressMonitor), we will need to invoke the equivilent of an org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation after the call to helper.emitSortedImports(cu).
Comment 8 Paul Slauenwhite CLA 2008-01-25 09:23:10 EST
We want to revisit this defect in 4.5 since it is impacting our own testing process.  When Project Leads and committers remove invocations of test suite from their JUnit-based test suite, removing the plug-in under test causes compilation errors.
Comment 9 Paul Slauenwhite CLA 2008-05-21 14:24:30 EDT
Deferring to future as approved by the TPTP PMC (http://dev.eclipse.org/mhonarc/lists/tptp-pmc/msg04926.html).
Comment 10 Ben Chen CLA 2009-06-29 05:59:56 EDT
Reproducible in TPTP-4.6.0-200906191311
Comment 11 Paul Slauenwhite CLA 2009-06-30 07:00:19 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 12 Paul Slauenwhite CLA 2009-07-02 15:22:42 EDT
Reopening since still relevant.
Comment 13 Paul Slauenwhite CLA 2010-03-10 12:18:16 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 14 Paul Slauenwhite CLA 2010-03-25 20:01:42 EDT
Closing.