Skip to content

Instantly share code, notes, and snippets.

@dmlloyd
Created April 13, 2015 16:04
Show Gist options
  • Select an option

  • Save dmlloyd/f698781285eacf105fd3 to your computer and use it in GitHub Desktop.

Select an option

Save dmlloyd/f698781285eacf105fd3 to your computer and use it in GitHub Desktop.
Fix for interceptors API change
diff --git a/ejb3/src/test/java/org/jboss/as/ejb3/component/stateful/StatefulSessionSynchronizationInterceptorTestCase.java b/ejb3/src/test/java/org/jboss/as/ej
index 3c2c452..26de83c 100644
--- a/ejb3/src/test/java/org/jboss/as/ejb3/component/stateful/StatefulSessionSynchronizationInterceptorTestCase.java
+++ b/ejb3/src/test/java/org/jboss/as/ejb3/component/stateful/StatefulSessionSynchronizationInterceptorTestCase.java
@@ -73,7 +73,7 @@ public class StatefulSessionSynchronizationInterceptorTestCase {
public void testDifferentTx() throws Exception {
final Interceptor interceptor = new StatefulSessionSynchronizationInterceptor(true);
final InterceptorContext context = new InterceptorContext();
- context.setInterceptors(Arrays.asList(noop()));
+ context.setInterceptors(new Interceptor[] { noop() });
final StatefulSessionComponent component = mock(StatefulSessionComponent.class);
context.putPrivateData(Component.class, component);
when(component.getAccessTimeout(null)).thenReturn(defaultAccessTimeout());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment