Skip to content

Instantly share code, notes, and snippets.

@stephan-mueller
Created September 28, 2015 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephan-mueller/9226f2a7cfa8a555d5b9 to your computer and use it in GitHub Desktop.
Save stephan-mueller/9226f2a7cfa8a555d5b9 to your computer and use it in GitHub Desktop.
JUnit test to demonstrate the method execution order with inheritance.
public class MethodOrderInheritanceTest extends MethodOrderTest {
private static final Logger LOG = LoggerFactory.getLogger(MethodOrderInheritanceTest.class);
@Test
public void methodAChild() throws Exception {
LOG.info("@Test methodAChild()");
}
@Test
public void methodBChild() throws Exception {
LOG.info("@Test methodBChild()");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment