Category: Java

JUnit test with dynamic number of tests

This can be done as follows in JUnit 3: public class XTest extends TestCase { public File file; public XTest(File file) { super(file.toString()); this.file = file; } public void testX() { fail(“Failed: ” + file); } } public class XTestSuite

Posted in Java Tagged with:

Java Regular Expressions

Here is a nice guide for regular expressions in Java:

Posted in Java