Created
September 11, 2014 16:13
-
-
Save weissjeffm/da5f722d72b49584a3f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Foo { | |
| public static void test(){ | |
| try { | |
| System.out.println("running test"); | |
| } | |
| finally { | |
| System.out.println("Cleaning up test"); | |
| } | |
| } | |
| public static void handler(){ | |
| try { | |
| System.out.println("starting test"); | |
| test(); | |
| } | |
| catch (Exception e) { | |
| System.out.println("test failed"); | |
| } | |
| finally { | |
| System.out.println("test runner cleaning up"); | |
| } | |
| } | |
| public static void main(String[] args){ | |
| handler(); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment