java - Is it possible to combine @After Advice with spring boot junit tests? -


is somehow possibile create @after advice each tests method in spring boot application? write tests using groovy. here example:

test class:

@runwith(springrunner) class mytest {    @test   void 'this test'() {    ...   }  } 

my advice class:

@advice public class myadvice() {    @after("@annotation(org.junit.junit)")   public void after() {      system.out.println("this end of test case");   } } 

or event log in @after annotation failed (assertexception) or passed. when tryied run code in application getting "method name 'this test' invalid".


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -