Migrate microbenchmark to junit5 (#11440) (#11443)

Motivation:

We should update to use junit5 in all modules.

Modifications:

Adjust microbenchmark to use junit5

Result:

Part of https://github.com/netty/netty/issues/10757
This commit is contained in:
Norman Maurer 2021-07-02 08:05:03 +02:00
parent f84bfd2dd2
commit dbdf9f16c2

View File

@ -15,7 +15,6 @@
*/
package io.netty.microbench.util;
import static org.junit.Assert.assertNull;
import io.netty.util.ResourceLeakDetector;
import io.netty.util.internal.SystemPropertyUtil;
@ -23,7 +22,7 @@ import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
@ -33,6 +32,8 @@ import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.options.ChainedOptionsBuilder;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import static org.junit.jupiter.api.Assertions.assertNull;
/**
* Base class for all JMH benchmarks.
*/