I've written several JUnit test methods to test my Java Swing GUI (using FEST). My class is in the following format:
public class Tests
{
@BeforeClass
public static void beforeClass() throws Exception { ... }
@Before
public void before() throws Exception { ... }
@After
public void after() throws Exception { ... }
@AfterClass
public static void afterClass() throws Exception { ... }
@Test
public void testA() { ... }
@Test
public void testB() { ... }
@Test
public void testC() { ... }
}
When I run this class in Eclipse, it only runs the testA test, and not testB or testC. If I comment out testA, testB runs - so it seems to just run the first test each time.
JUnit in Eclipse shows 'Runs: 2/3' after it has completed the first test, but doesn't progress any further, or show any errors.
Is there something I'm doing wrong? I'm using JUnit 4.8.1 and FEST 1.2.