Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 89332

Summary: [JUnit] "Recreate Test Suite..." not possible after renaming
Product: [Eclipse Project] JDT Reporter: Daniel Hofstetter <daniel-hofstetter>
Component: UIAssignee: Tobias Widmer <tobias_widmer>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Daniel Hofstetter CLA 2005-03-29 07:10:42 EST
If you rename a test suite from AllTests.java to another name, it is no longer
possible to use the functionality of "Recreate Test Suite...". The same is also
true, if you choose a different name than AllTests.java when you create a new
test suite.
Comment 1 David Saff CLA 2005-05-26 09:32:47 EDT
Some sort of name filter is likely necessary: actually checking for a suite()
method would be rather expensive on every menu opening.  Would any class ending
with ...Tests work OK, Daniel?
Comment 2 Daniel Hofstetter CLA 2005-05-26 10:37:11 EDT
Yes, that would be ok.
Comment 3 David Saff CLA 2005-05-26 11:38:02 EDT
Created attachment 21836 [details]
Patch

This allows Recreate Test Suite... on any class named *Tests
Comment 4 Dirk Baeumer CLA 2005-06-02 11:14:31 EDT
+1 to put this in for RC2.
Comment 5 Tobias Widmer CLA 2005-06-02 11:55:57 EDT
Fixed > 20050602
Comment 6 Dirk Baeumer CLA 2005-06-09 10:20:27 EDT
start verifying...
Comment 7 Dirk Baeumer CLA 2005-06-09 10:21:11 EDT
Verified that a test suite like XXXTests has the content menu and that it is
still missing on a class XXX