Tuesday, July 04, 2006

TestNG test class template for IDEA


#parse("File Header.java")

package ${PACKAGE_NAME};

import static org.testng.Assert.*;
import org.testng.annotations.*;

public class ${NAME} {

@Configuration(beforeTestClass = true)
public void setUp() {
// Code to set up the test class comes here
}

@Configuration(afterTestClass = true)
public void tearDown() {
// Code to clean up the test class comes here
}

@Test
public void testSomething() {
// Code to test comes here
}

}

No comments: