public JMockitHookable(final ITestContext context) {
if (context == null) {
throw new RuntimeException("the testng conext can't be null.");
}
IConfiguration m_configuration = mField.get(context);
if (m_configuration == null) {
this.hookable = null;
} else {
this.hookable = m_configuration.getHookable();
if (this.hookable == null) {
String jarFilePath = getJMockitJarFilePath();
String hits = "JMockit has not been initialized. Check that your Java VM has been started with the -javaagent:"
+ jarFilePath + " command line option.";
throw new RuntimeException(hits);