package test.tmp;

import org.testng.annotations.Listeners;
import org.testng.annotations.Test;

//@Test(sequential = true)
@Listeners(C2.class)
public class A extends C2 {

//  @Factory
  public Object[] f() {
    return new Object[] {
        new A(),
        new A()
    };
  }

//  @BeforeClass(groups = "pre", dependsOnMethods = "bc2")
//  public void bc1() {
//    System.out.println("Before class 1");
//  }
//
//  @BeforeClass(groups = "pre") // , dependsOnMethods = "bc1")
//  public void bc2() {
//    System.out.println("Before class 2");
//  }

//  @AfterMethod
//  public void am() {
//    System.out.println("After method");
//  }

  @Test
  public void a1() {
    System.out.println("a1 throwing");
//    throw new RuntimeException();
//    System.out.println("a1 " + Thread.currentThread().getId());
  }

//  @Test
  public void a2() {
    System.out.println("a2 " + Thread.currentThread().getId());
  }
}

@@ -16,49 +16,8 @@
 p;%0A%0A
-import org.testng.annotations.Listeners;%0A
 impo
@@ -76,16 +76,18 @@
 = true)%0A
+//
 @Listene
@@ -118,19 +118,8 @@
 s A 
-extends C2 
 %7B%0A%0A/

Build fix.