@@ -63,15 +63,18 @@ protected void setUp() throws IOException {
63
63
"confirm-multiple-queues" );
64
64
}
65
65
66
- public void testTransient ()
67
- throws IOException , InterruptedException {
68
- confirmTest ("" , "confirm-test" , false , false , false );
69
- }
70
-
71
- public void testPersistentSimple ()
66
+ public void testPersistentMandatoryImmediateCombinations ()
72
67
throws IOException , InterruptedException
73
68
{
74
- confirmTest ("" , "confirm-test" , true , false , false );
69
+ boolean b [] = { false , true };
70
+ for (boolean persistent : b ) {
71
+ for (boolean mandatory : b ) {
72
+ for (boolean immediate : b ) {
73
+ confirmTest ("" , "confirm-test" ,
74
+ persistent , mandatory , immediate );
75
+ }
76
+ }
77
+ }
75
78
}
76
79
77
80
public void testNonDurable ()
@@ -80,24 +83,12 @@ public void testNonDurable()
80
83
confirmTest ("" , "confirm-test-nondurable" , true , false , false );
81
84
}
82
85
83
- public void testPersistentImmediate ()
84
- throws IOException , InterruptedException
85
- {
86
- confirmTest ("" , "confirm-test" , true , false , true );
87
- }
88
-
89
86
public void testPersistentImmediateNoConsumer ()
90
87
throws IOException , InterruptedException
91
88
{
92
89
confirmTest ("" , "confirm-test-noconsumer" , true , false , true );
93
90
}
94
91
95
- public void testPersistentMandatory ()
96
- throws IOException , InterruptedException
97
- {
98
- confirmTest ("" , "confirm-test" , true , true , false );
99
- }
100
-
101
92
public void testPersistentMandatoryReturn ()
102
93
throws IOException , InterruptedException
103
94
{
0 commit comments