mTestName = (String) m.get(Constants.TEST_NAME);
if (mTestGroup == null || mTestName == null)
{
throw new IllegalStateException("Couldn't locate the TestGroup or TestName in the request. Did you use the GenericFacesTestSuitePortlet?");
}
// Now lookup the object that implements the test. There should be a managedBean with the same name as
// the testGroup.
mTest = context.getELContext()
.getELResolver().getValue(context.getELContext(), null, mTestGroup);
if (mTest == null)
{
throw new IllegalStateException("Couldn't locate managed bean containing the test: " + mTestGroup);
}
// The test is annotated by a method annotation with a parameter value = mTestName -- so
// look it up.
mTestMethod = getAnnotatedTestMethod(mTestName, mTest);
if (mTestMethod == null)
throw new IllegalStateException("Couldn't locate (annotation for) test: " + mTestName + "Test in the test object.");
}