1package test.pholser; 2 3import org.testng.annotations.AfterClass; 4import org.testng.annotations.AfterMethod; 5import org.testng.annotations.BeforeClass; 6import org.testng.annotations.BeforeMethod; 7import org.testng.annotations.Test; 8 9/** 10 * @author <a href="mailto:pholser@thoughtworks.com">Paul Holser</a> 11 * @version $Id: Saboteur.java,v 1.4 2006/06/22 13:45:01 cedric Exp $ 12 */ 13public class Saboteur { 14 @BeforeClass 15 public void setUpFixture() { 16 Captor.reset(); 17 Captor.instance().capture( "Saboteur.setUpFixture" ); 18 } 19 20 @BeforeMethod 21 public void setUp() { 22 Captor.instance().capture( "Saboteur.setUp" ); 23 } 24 25 @AfterMethod 26 public void tearDown() { 27 Captor.instance().capture( "Saboteur.tearDown" ); 28 } 29 30 @AfterClass 31 public void tearDownFixture() { 32 Captor.instance().capture( "Saboteur.tearDownFixture" ); 33 } 34 35 @Test 36 public void go() { 37 } 38} 39