Skip to content

Instantly share code, notes, and snippets.

@DominikDary
Created February 4, 2014 12:59
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 DominikDary/8803154 to your computer and use it in GitHub Desktop.
Save DominikDary/8803154 to your computer and use it in GitHub Desktop.
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");
}
}
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