Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
1.0.3, 1.0.4
-
None
-
None
-
Linux Fedora 17_64
Description
Problem:
JUnit tag @Ignore is not recognized since the testcase is JUnit3 and not JUnit4:
Solution:
Migrate the testcase to JUnit4
How:
Remove extends TestCase"
SetUp and TearDown methods
@Override
protected void setUp() throws Exception { }
replaced by:
@Before
public void setUp() throws Exception { }
Same for tearDown():
@Override
protected void tearDown() throws Exception { }
replaced by
@After
public void tearDown() throws Exception { }
Imports
The imports has to be reorganized:
Remove import junit.framework.TestCase;
Add org.junit.*; or import org.junit.After; import org.junit.Before; import org.junit.Test;