Re: eclipse and junit4
On Mon, Sep 17, 2007 at 05:11:00PM +0300, Timo Aaltonen wrote:
>
> Hi!
>
> I've got a notice from a java-class teacher that the Debian/Ubuntu
> packaged eclipse doesn't include junit4 -support (junit 3.8.1 being too
> old), which was probably due to junit4 not being available? Now that junit4
> is in unstable I tried to build eclipse with it (removing all chunks that
> mentioned junit from eclipse-disable-junit4-apt.dpatch). It failed, so
> apparently editing that patch alone isn't enough:
>
> @dot:
> [mkdir] Created dir:
> /opt/l/dpkg/eclipse-3.2.2/source-tree/plugins/org.eclipse.jdt.junit4.runtime/temp.folder/@dot.bin
> [javac] Compiling 6 source files to
> /opt/l/dpkg/eclipse-3.2.2/source-tree/plugins/org.eclipse.jdt.junit4.runtime/temp.folder/@dot.bin
> [javac] ----------
> [javac] 1. ERROR in
> /opt/l/dpkg/eclipse-3.2.2/source-tree/plugins/org.eclipse.jdt.junit4.runtime/src/org/eclipse/jdt/internal/junit4/runner/JUnit4Identifier.java
> (at line 16)
> [javac] import org.junit.runner.Description;
> [javac] ^^^^^^^^^
> [javac] The import org.junit cannot be resolved
> [javac] ----------
> [javac] 2. ERROR in
> /opt/l/dpkg/eclipse-3.2.2/source-tree/plugins/org.eclipse.jdt.junit4.runtime/src/org/eclipse/jdt/internal/junit4/runner/JUnit4Identifier.java
> [javac] (at line 19)
> [javac] private final Description fPlan;
> [javac] ^^^^^^^^^^^
> [javac] Description cannot be resolved to a type
> [javac] ----------
> [javac] 3. ERROR in
> /opt/l/dpkg/eclipse-3.2.2/source-tree/plugins/org.eclipse.jdt.junit4.runtime/src/org/ecl
> [javac] ipse/jdt/internal/junit4/runner/JUnit4Identifier.java (at line
> 21)
> [javac] public JUnit4Identifier(Description plan) {
> [javac] ^^^^^^^^^^^
> [javac] Description cannot be resolved to a type
> .
> .
> .
> .
>
> Have you considered adding junit4 support in the eclipse packaging? If so,
> do you have an estimate when that would be ready? I'd be willing to test
> any such effort.
I'm working on this. Problem is that the eclipse build process doesnt
find the junit4.jar in /usr/share/java automatically.
Cheers,
Michael
Reply to: