cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterjo...@apache.org
Subject svn commit: r798533 - /cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/attachment/external/EndpointReferenceDomainExpressionTest.java
Date Tue, 28 Jul 2009 14:27:14 GMT
Author: peterjones
Date: Tue Jul 28 14:27:14 2009
New Revision: 798533

URL: http://svn.apache.org/viewvc?rev=798533&view=rev
Log:
Work-around issue with EasyMock failing detecting finalize calls during test
with ibm jdk (use data members rather than local variables).

Modified:
    cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/attachment/external/EndpointReferenceDomainExpressionTest.java

Modified: cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/attachment/external/EndpointReferenceDomainExpressionTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/attachment/external/EndpointReferenceDomainExpressionTest.java?rev=798533&r1=798532&r2=798533&view=diff
==============================================================================
--- cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/attachment/external/EndpointReferenceDomainExpressionTest.java
(original)
+++ cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/attachment/external/EndpointReferenceDomainExpressionTest.java
Tue Jul 28 14:27:14 2009
@@ -38,7 +38,13 @@
 public class EndpointReferenceDomainExpressionTest extends Assert {
 
     private IMocksControl control;
-    
+   
+    // Avoid spurious failures on EasyMock detecting finalize calls
+    // by using data members rather than local variables for these.
+    private ServiceInfo si;
+    private BindingOperationInfo boi;
+    private BindingMessageInfo bmi;
+    private BindingFaultInfo bfi;
     
     @Before
     public void setUp() {
@@ -54,10 +60,10 @@
         eprde.setEndpointReference(epr);
         assertSame(epr, eprde.getEndpointReference());
         
-        ServiceInfo si = control.createMock(ServiceInfo.class);
-        BindingOperationInfo boi = control.createMock(BindingOperationInfo.class);
-        BindingMessageInfo bmi = control.createMock(BindingMessageInfo.class);
-        BindingFaultInfo bfi = control.createMock(BindingFaultInfo.class);
+        si = control.createMock(ServiceInfo.class);
+        boi = control.createMock(BindingOperationInfo.class);
+        bmi = control.createMock(BindingMessageInfo.class);
+        bfi = control.createMock(BindingFaultInfo.class);
         
         assertTrue(!eprde.appliesTo(si));
         assertTrue(!eprde.appliesTo(boi));
@@ -80,6 +86,11 @@
         control.replay();
         assertTrue(eprde.appliesTo(ei));
         control.verify();
+        
+        bfi = null;
+        bmi = null;
+        boi = null;
+        si = null;
     }
     
 }



Mime
View raw message