@Po, @, zanim nie będzie działać w testcase

Zacząłem testować, a teraz chcę użyć@After, @Before i@Test ale moja aplikacja działa tylko@Before metoda i daje wyjście na konsoli

przed

Jeśli jednak usunę@After i@Before uruchamia test @. Mój kod jest tutaj:

<code>public class TestPractise extends AbstractTransactionalDataSourceSpringContextTests{

    @Before
    public void runBare(){
        System.out.println("before");
    }

    @Test
    public void testingMethod(){
        System.out.println("testing");
    }

    @After
    public void setDirty(){
        System.out.println("after");
    }
}
</code>

Dlaczego nie@After, @Test i@before działa jednocześnie?

questionAnswers(3)

yourAnswerToTheQuestion