Created
February 4, 2014 12:59
-
-
Save DominikDary/8803154 to your computer and use it in GitHub Desktop.
This file contains 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
package com.ebay.mobile.tests; | |
import org.testng.annotations.AfterClass; | |
import org.testng.annotations.BeforeClass; | |
import org.testng.annotations.Test; | |
public class Tests { | |
@BeforeClass | |
public void setup() { | |
System.out.println("setup"); | |
} | |
@Test | |
public void test() throws Exception { | |
throw new Exception("test error"); | |
} | |
@AfterClass | |
public void teardown() { | |
System.out.println("teardown"); | |
} | |
} |
This file contains 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
setup | |
teardown | |
FAILED: test | |
java.lang.Exception: test error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment