 If the situation requires it, it is also possible to define a method to execute before (or after) each (or all) of the test methods with the codice_5 (or codice_6) and codice_7 (or codice_8) annotations.import org.junit.