Created
April 13, 2015 16:04
-
-
Save dmlloyd/f698781285eacf105fd3 to your computer and use it in GitHub Desktop.
Fix for interceptors API change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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