On 29 Oct 2008, at 20:14, Petr V. wrote:

I must be doing some thing very silly :-(

I'm afraid so.  This caught me out. :(

public class AppTest extends TestCase

In JUnit 4, you don't extend TestCase. Instead, you should "import static org.junit.Assert.*" to get at the assertions.

If you extend TestCase, JUnit will run the test with the JUnit 3.8 runner, which will ignore the annotations.

-Dom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to