package test.hook;

import org.testng.Assert;
import org.testng.IConfigurable;
import org.testng.IConfigureCallBack;
import org.testng.ITestResult;
import org.testng.annotations.Test;


/**
 * Test harness for {@link IConfigurable}
 */
public class ConfigurableSuccessTest extends BaseConfigurable {
  @Override
  public void run(IConfigureCallBack callBack, ITestResult testResult) {
    m_hookCount++;
    callBack.runConfigurationMethod(testResult);
  }

  @Test
  public void hookWasRun() {
    Assert.assertEquals(m_hookCount, 4);
    Assert.assertTrue(m_bs);
    Assert.assertTrue(m_bt);
    Assert.assertTrue(m_bc);
    Assert.assertTrue(m_bm);
  }
}

@@ -484,24 +484,153 @@
 kWasRun() %7B%0A
+    // Note: this value will depend on what other classes are in the same %3Ctest%3E and%0A    // %3Csuite%3E, so not a very accurate test%0A
     Assert.a

Comment update