clebertsuconic commented on code in PR #4178:
URL: https://github.com/apache/activemq-artemis/pull/4178#discussion_r945941354
##########
tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/paging/MaxMessagesPagingTest.java:
##########
@@ -301,4 +314,120 @@ public void testMaxOnAddressHitGlobal() throws Exception {
}
}
+ @Test
+ public void testFailMaxMessage() throws Exception {
+ internalFailMaxMessge(false);
+ }
+
+ @Test
+ public void testFailMaxMessageGlobal() throws Exception {
+ internalFailMaxMessge(true);
+ }
+
+ private void internalFailMaxMessge(boolean global) throws Exception {
+ clearDataRecreateServerDirs();
+
+ Configuration config = createDefaultConfig(true);
+
+ HashMap<String, AddressSettings> settings = new HashMap<>();
+
+ AddressSettings set = new AddressSettings();
+ set.setAddressFullMessagePolicy(AddressFullMessagePolicy.FAIL);
+ if (global) {
+ config.setGlobalMaxMessages(10);
+ }
+
+ settings.put( "FAIL_MAX_MESSAGES_CORE", set);
+ settings.put( "FAIL_MAX_MESSAGES_OPENWIRE", set);
+ settings.put( "FAIL_MAX_MESSAGES_AMQP", set);
Review Comment:
... I will remove these lines.. forgot those hanging.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]