ScottFree wrote: Annotations entretando acaba com a necessidade dos métodos setUp() e tearDown() certo??????
voce muda a forma de executar eles,
Set up and tear down
The new JUnit provides two new annotations for set up and tear down:
· @Before: Method annotated with @Before executes before every test.
· @After: Method annotated with @After executes after every test.
Here is the code that demonstrates the use of @Before and @After:
qquer metodo pode rodar antes de um teste d qquer metodo depois.