public void beforeClass(Class<?> testClass) throws Exception
{
Validate.notNull(testClass, "TestClass must be specified");
BeforeClass event = new BeforeClass(testClass);
Context classContext = contextLifecycle.createRestoreClassContext(testClass);
try
{
classContext.add(TestClass.class, event.getTestClass());
classContext.fire(new BeforeClass(testClass));
}
finally
{
activeContext.push(classContext);
}