0

I'm trying to build eclipse plugins (org.eclipse.jdt.ui.tests.refactoring).

enter image description here

Downloading the source from the git, and I could build the project. I wanted to debug into ExtractMethodTest routine, I just set a breakpoint in a setUP routine, and launch the debugger.

enter image description here

However, I got an initialization error.

enter image description here

Then, I tried to launch the debugger by right click on the ExtractMethodTests.java in package explorer to get Workspace is closed error.

enter image description here enter image description here What might be wrong? I just wanted to launch ExtractMethodTests.java unit test to trace the code line by line.

prosseek
  • 182,215
  • 215
  • 566
  • 871
  • http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/tree/org.eclipse.jdt.ui.tests.refactoring/test%20cases/org/eclipse/jdt/ui/tests/refactoring/AllTests.java which calls http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/tree/org.eclipse.jdt.ui.tests.refactoring/test%20cases/org/eclipse/jdt/ui/tests/refactoring/AllRefactoringTests.java – Matt Ball Dec 15 '12 at 04:27

2 Answers2

1

Are you trying to run with the wrong version of JUnit? Eclipse ships with both JUnit 3 and Junit 4 compatible runtimes.

Secondly, does your unit test actually have a 0-arg constructor?

Clearly, I didn't check the code base to see if the Eclipse people know how to create the unit tests. I'm just assuming they do.

Zagrev
  • 2,000
  • 11
  • 8
0

"Test class should have exactly one" error

Using JUnit 3 as a test runner solved the first issue, but I still have the workspace issue. I'll open another post for it.

enter image description here

"Workspace is closed" error

From the hint of Workspace is closed error, I executed the test as a plugin test to make it work.

enter image description here

Community
  • 1
  • 1
prosseek
  • 182,215
  • 215
  • 566
  • 871