You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/transport-h2/src/main/java/org/apache/axis2/transport/h2/integration/moshi/UndertowAxis2BufferIntegration.java
Copy file name to clipboardExpand all lines: modules/transport-h2/src/test/java/org/apache/axis2/transport/h2/integration/moshi/MemoryConstraintValidationTest.java
+8-20Lines changed: 8 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,7 @@
45
45
importio.undertow.server.HttpServerExchange;
46
46
importio.undertow.util.HeaderMap;
47
47
importio.undertow.util.Headers;
48
+
importorg.xnio.Pool;
48
49
49
50
/**
50
51
* Memory Constraint Validation Test Suite for WildFly 32 + Axis2 HTTP/2 Integration.
@@ -84,6 +85,9 @@ public class MemoryConstraintValidationTest {
84
85
publicvoidsetUp() throwsException {
85
86
MockitoAnnotations.openMocks(this);
86
87
88
+
// Clear static cache to ensure test isolation
89
+
UndertowAxis2BufferIntegration.clearCache();
90
+
87
91
// Initialize memory coordination
88
92
memoryCoordinator = newHTTP2MemoryCoordinator();
89
93
@@ -488,27 +492,11 @@ public void testLongRunningOperationMemoryStability() throws Exception {
Copy file name to clipboardExpand all lines: modules/transport-h2/src/test/java/org/apache/axis2/transport/h2/integration/moshi/WildFlyAxis2CooperativeIntegrationTest.java
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@
40
40
importorg.junit.Test;
41
41
importorg.mockito.Mock;
42
42
importorg.mockito.MockitoAnnotations;
43
+
importorg.xnio.Pool;
43
44
importorg.xnio.XnioWorker;
44
45
45
46
importio.undertow.server.HttpServerExchange;
@@ -80,6 +81,9 @@ public class WildFlyAxis2CooperativeIntegrationTest {
80
81
publicvoidsetUp() throwsException {
81
82
MockitoAnnotations.openMocks(this);
82
83
84
+
// Clear static cache to ensure test isolation
85
+
UndertowAxis2BufferIntegration.clearCache();
86
+
83
87
// Mock WildFly buffer pool (key integration point)
84
88
mockBufferPool = createMockBufferPool();
85
89
@@ -310,10 +314,20 @@ public void testHTTP2StreamPrioritizationWithWildFly() throws Exception {
310
314
*/
311
315
@Test
312
316
publicvoidtestWildFlyIntegrationFallback() {
317
+
// Clear cache to ensure this test has clean state
0 commit comments