| Summary: | Some tests are setup differently when run as a suite and when run individually | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Deepak Azad <deepakazad> | ||||
| Component: | Text | Assignee: | Deepak Azad <deepakazad> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
I've remove
public static Test setUpTest(Test test) {
return new TestSetup(test);
}
in HEAD.
Deepak, please check the other cases you've found.
Created attachment 180638 [details]
fix
Fixed in HEAD
. |
I came across a few such instances in o.e.jdt.text.tests.performance. This is incorrect and the code is confusing... public static Test suite() { return new PerfTestSuite(FileBufferPerformanceTest.class); } public static Test setUpTest(Test test) { return new PerformanceTestSetup(test); } The correct way could be public static Test suite() { return new PerformanceTestSetup(new PerfTestSuite(FileBufferPerformanceTest.class)); } public static Test setUpTest(Test test) { return new PerformanceTestSetup(test); } OR public static Test suite() { return new PerfTestSuite(FileBufferPerformanceTest.class); } public static Test setUpTest(Test test) { return new TestSetup(test); }