private Statement withParamterInjection(FrameworkMethod testMethod,
Object test, Statement next) {
if (parameters != null) {
List<FrameworkMethod> befores = osgiTestClass.getAnnotatedMethods(OSGiParameter.class.getName());
return new InjectParametersStatement(osgiTestBundle, next, befores, test, parameters);
} else {
return next;
}
}