Christophe Verré wrote:1. Which version of JUnit are you using ?
2. Are you methods called when only a test class is executed ? (without the suite)
3. In JUnit 3.x, the setup method is called "setUp", not "setup". Same for tearDown. It's "tearDown", not "teardown"
I'm using JUnit 4. When the test class is executed, everything works the way it should. I use the annotation @Before and @After for my setup and teardown methods, however I have kept the name the same. Here's a snippet of what the class looks like:
All required libraries are imported. There are numerous tests that get run, this is an example of the structure of the class.
Thanks again for your replies and help.