Author: bvahdat
Date: Thu Oct 18 13:22:51 2012
New Revision: 1399659

URL: http://svn.apache.org/viewvc?rev=1399659&view=rev
Log:
Polished.

Modified:
    
camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/QuickfixjEngineTest.java

Modified: 
camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/QuickfixjEngineTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/QuickfixjEngineTest.java?rev=1399659&r1=1399658&r2=1399659&view=diff
==============================================================================
--- 
camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/QuickfixjEngineTest.java
 (original)
+++ 
camel/trunk/components/camel-quickfix/src/test/java/org/apache/camel/component/quickfixj/QuickfixjEngineTest.java
 Thu Oct 18 13:22:51 2012
@@ -535,7 +535,7 @@ public class QuickfixjEngineTest extends
             int result = 1;
             result = prime * result + ((eventCategory == null) ? 0 : 
eventCategory.hashCode());
             result = prime * result + ((sessionID == null) ? 0 : 
sessionID.hashCode());
-            // don't take message into the account as otherwise we would break 
the expected java.lang.Object.equals() contract
+            result = prime * result + (message == null ? 1231 : 1237);
 
             return result;
         }
@@ -571,7 +571,7 @@ public class QuickfixjEngineTest extends
         assertThat(quickfixjEngine.getLogFactory(), 
instanceOf(ScreenLogFactory.class));
         assertThat(quickfixjEngine.getMessageFactory(), 
instanceOf(DefaultMessageFactory.class));
         MBeanServer mbeanServer = ManagementFactory.getPlatformMBeanServer();
-        Set<ObjectName> names = mbeanServer.queryNames(new 
ObjectName("org.quickfixj:*"), null);
+        Set<ObjectName> names = mbeanServer.queryNames(new 
ObjectName("org.quickfixj:type=Connector,role=Acceptor,*"), null);
         assertTrue("QFJ mbean should not have been registered", 
names.isEmpty());
     }
 


Reply via email to