|
21 | 21 | import io.netty.buffer.CompositeByteBuf; |
22 | 22 | import io.netty.buffer.Unpooled; |
23 | 23 | import io.netty.channel.embedded.EmbeddedChannel; |
24 | | -import io.netty.util.internal.PlatformDependent; |
25 | 24 | import org.junit.jupiter.api.AfterEach; |
26 | 25 | import org.junit.jupiter.api.BeforeAll; |
27 | 26 | import org.junit.jupiter.api.BeforeEach; |
28 | | -import org.junit.jupiter.api.condition.DisabledIf; |
29 | 27 | import org.junit.jupiter.params.ParameterizedTest; |
30 | 28 | import org.junit.jupiter.params.provider.MethodSource; |
31 | 29 |
|
|
35 | 33 |
|
36 | 34 | import static org.junit.jupiter.api.Assertions.assertEquals; |
37 | 35 | import static org.junit.jupiter.api.Assertions.assertTrue; |
38 | | -import static org.junit.jupiter.api.Assumptions.assumeTrue; |
39 | 36 |
|
40 | | -@DisabledIf(value = "isNotSupported", disabledReason = "Brotli is not supported on this platform") |
41 | 37 | public class BrotliDecoderTest { |
42 | 38 |
|
43 | 39 | private static Random RANDOM; |
@@ -66,10 +62,6 @@ static void setUp() { |
66 | 62 | private static final ByteBuf WRAPPED_BYTES_LARGE = Unpooled.unreleasableBuffer( |
67 | 63 | Unpooled.wrappedBuffer(BYTES_LARGE)).asReadOnly(); |
68 | 64 |
|
69 | | - static boolean isNotSupported() { |
70 | | - return PlatformDependent.isOsx() && "aarch_64".equals(PlatformDependent.normalizedArch()); |
71 | | - } |
72 | | - |
73 | 65 | private static void fillArrayWithCompressibleData(byte[] array) { |
74 | 66 | for (int i = 0; i < array.length; i++) { |
75 | 67 | array[i] = i % 4 != 0 ? 0 : (byte) RANDOM.nextInt(); |
|
0 commit comments