Here's what the template should look like to work:
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
import org.testng.annotations.Test;
public class ${NAME} {
@Test
public void testGeneratedStub () {
$END$
}
}
Result:
/**
* User: demo
* Date: 2/7/14
* Time: 11:02 AM
*/
import org.testng.annotations.Test;
public class StackoverflowTest {
@Test
public void testGeneratedStub() {
}
}