Author: clebert.suconic(a)jboss.com
Date: 2011-03-14 20:09:53 -0400 (Mon, 14 Mar 2011)
New Revision: 10329
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/management/HornetQServerControlTest.java
Log:
fixing test
Modified:
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/management/HornetQServerControlTest.java
===================================================================
---
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/management/HornetQServerControlTest.java 2011-03-14
23:48:55 UTC (rev 10328)
+++
branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/integration/management/HornetQServerControlTest.java 2011-03-15
00:09:53 UTC (rev 10329)
@@ -478,8 +478,8 @@
String expiryAddress = "someExpiry";
boolean lastValueQueue = true;
int deliveryAttempts = 1;
- long maxSizeBytes = 2;
- int pageSizeBytes = 3;
+ long maxSizeBytes = 20;
+ int pageSizeBytes = 10;
int pageMaxCacheSize = 7;
long redeliveryDelay = 4;
long redistributionDelay = 5;
@@ -499,6 +499,30 @@
sendToDLAOnNoRoute,
addressFullMessagePolicy);
+
+ boolean ex = false;
+ try
+ {
+ serverControl.addAddressSettings(addressMatch,
+ DLA,
+ expiryAddress,
+ lastValueQueue,
+ deliveryAttempts,
+ 100,
+ 1000,
+ pageMaxCacheSize,
+ redeliveryDelay,
+ redistributionDelay,
+ sendToDLAOnNoRoute,
+ addressFullMessagePolicy);
+ }
+ catch (Exception expected)
+ {
+ ex=true;
+ }
+
+ assertTrue("Exception expected", ex);
+
//restartServer();
serverControl = createManagementControl();
Show replies by date