[Bluej-discuss] JUnit4.1
Peter Sander
sander at polytech.unice.fr
Mon Oct 2 10:12:27 BST 2006
Hello,
For an "Intro to Programming" course (using BlueJ), I'd like the
students to start using JUnit4.1 right off the bat rather than starting
with 3.8.1 and then upgrading to 4.1 once they leave the BlueJ
environment. I can get a JUnit4.-compliant test class, eg,
import org.junit.Test;
import static org.junit.Assert.*;
public class AnyTest {
@Test
public void any() {
assertTrue(true);
}
}
to compile ok by setting the "Preferences / Libraries" tab to the
junit-4.1.jar archive, or by unzipping the JUnit4.1 distribution into
/path/to/bluej/lib/userlib. But that's as far as it goes. Running the
test does bring up the Test Results window, but no tests are run.
Would there be any way to coerce BlueJ into ececuting one of the new
JUnit4.1 runners to launch the tests, or am I out of luck until the next
release?
Cheers,
Peter Sander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20061002/12db90f4/attachment.html
More information about the bluej-discuss
mailing list