activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1379922 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java
Date Sun, 02 Sep 2012 07:12:33 GMT
Author: davsclaus
Date: Sun Sep  2 07:12:33 2012
New Revision: 1379922

URL: http://svn.apache.org/viewvc?rev=1379922&view=rev
Log:
AMQ-4007: Fixed default values of system usage for GB values to use 1024 multiplier instead
of 1000.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java?rev=1379922&r1=1379921&r2=1379922&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/broker/BrokerServiceTest.java
Sun Sep  2 07:12:33 2012
@@ -77,8 +77,8 @@ public class BrokerServiceTest extends T
     public void testSystemUsage()
     {
         BrokerService service = new BrokerService();
-        assertEquals( service.getSystemUsage().getMemoryUsage().getLimit(), 1024 * 1024 *
64 );
-        assertEquals( service.getSystemUsage().getTempUsage().getLimit(), 1024L * 1024 *
1000 * 50 );
-        assertEquals( service.getSystemUsage().getStoreUsage().getLimit(), 1024L * 1024 *
1000 * 100 );
+        assertEquals( 1024 * 1024 * 64, service.getSystemUsage().getMemoryUsage().getLimit()
);
+        assertEquals( 1024L * 1024 * 1024 * 50, service.getSystemUsage().getTempUsage().getLimit()
);
+        assertEquals( 1024L * 1024 * 1024 * 100, service.getSystemUsage().getStoreUsage().getLimit()
);
     }
 }



Mime
View raw message