|
25 | 25 | import java.util.concurrent.atomic.AtomicInteger; |
26 | 26 | import java.util.concurrent.atomic.AtomicReference; |
27 | 27 | import org.junit.jupiter.api.Test; |
| 28 | +import org.junit.jupiter.api.parallel.Execution; |
| 29 | +import org.junit.jupiter.api.parallel.ExecutionMode; |
28 | 30 | import org.junit.jupiter.api.io.TempDir; |
29 | 31 |
|
30 | 32 | class HttpEnvelopeWireCodecTest { |
31 | 33 | @TempDir Path directory; |
32 | 34 |
|
33 | 35 | @Test |
| 36 | + @Execution(ExecutionMode.CONCURRENT) |
34 | 37 | void serializedWrappersCoordinateConcurrentAccessToOneCodec() throws Exception { |
35 | 38 | CountDownLatch firstEntered = new CountDownLatch(1); |
36 | 39 | CountDownLatch releaseFirst = new CountDownLatch(1); |
@@ -84,6 +87,7 @@ private JsonEnvelope apply(JsonEnvelope envelope) { |
84 | 87 | } |
85 | 88 |
|
86 | 89 | @Test |
| 90 | + @Execution(ExecutionMode.CONCURRENT) |
87 | 91 | void durableProxyQueueKeepsSemanticEnvelopeAcrossCodecChange() throws Exception { |
88 | 92 | Path outgoing = directory.resolve("outgoing"); |
89 | 93 | HttpTlsIdentity identity = HttpTlsIdentity.loadOrCreate(directory.resolve("proxy"), "localhost"); |
@@ -116,6 +120,7 @@ void durableProxyQueueKeepsSemanticEnvelopeAcrossCodecChange() throws Exception |
116 | 120 | } |
117 | 121 |
|
118 | 122 | @Test |
| 123 | + @Execution(ExecutionMode.CONCURRENT) |
119 | 124 | void codecAppliesAtBothAuthenticatedHttpWireBoundaries() throws Exception { |
120 | 125 | HttpTlsIdentity identity = HttpTlsIdentity.loadOrCreate(directory.resolve("integration-proxy"), "localhost"); |
121 | 126 | HttpEnrollmentAuthority authority = new HttpEnrollmentAuthority(identity, directory.resolve("integration-authority")); |
@@ -147,6 +152,7 @@ void codecAppliesAtBothAuthenticatedHttpWireBoundaries() throws Exception { |
147 | 152 | } |
148 | 153 |
|
149 | 154 | @Test |
| 155 | + @Execution(ExecutionMode.CONCURRENT) |
150 | 156 | void wireExpansionIsRejectedBeforeItCanBlockAQueue() throws Exception { |
151 | 157 | Path outgoing = directory.resolve("bounded-outgoing"); |
152 | 158 | HttpTlsIdentity identity = HttpTlsIdentity.loadOrCreate(directory.resolve("bounded-proxy"), "localhost"); |
@@ -190,6 +196,7 @@ void wireExpansionIsRejectedBeforeItCanBlockAQueue() throws Exception { |
190 | 196 | } |
191 | 197 |
|
192 | 198 | @Test |
| 199 | + @Execution(ExecutionMode.CONCURRENT) |
193 | 200 | void uncheckedCodecRejectionReturnsFalseAtBothSendBoundaries() throws Exception { |
194 | 201 | HttpEnvelopeWireCodec rejecting = new HttpEnvelopeWireCodec() { |
195 | 202 | @Override public JsonEnvelope encode(JsonEnvelope envelope) { |
|
0 commit comments