wangzzu commented on code in PR #23242: URL: https://github.com/apache/flink/pull/23242#discussion_r1300073868
########## flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java: ########## @@ -109,34 +108,26 @@ import static java.util.Objects.requireNonNull; import static org.apache.flink.core.testutils.CommonTestUtils.assertThrows; +import static org.apache.flink.core.testutils.FlinkAssertions.assertThatFuture; +import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatThrownBy; -import static org.hamcrest.CoreMatchers.hasItems; -import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.greaterThanOrEqualTo; -import static org.hamcrest.Matchers.instanceOf; -import static org.hamcrest.Matchers.is; -import static org.hamcrest.Matchers.lessThanOrEqualTo; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotEquals; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; +import static org.assertj.core.api.Assertions.fail; /** IT cases for {@link RestClient} and {@link RestServerEndpoint}. */ -@RunWith(Parameterized.class) -public class RestServerEndpointITCase extends TestLogger { +@ExtendWith(ParameterizedTestExtension.class) +public class RestServerEndpointITCase { private static final JobID PATH_JOB_ID = new JobID(); private static final JobID QUERY_JOB_ID = new JobID(); private static final String JOB_ID_KEY = "jobid"; private static final Time timeout = Time.seconds(10L); private static final int TEST_REST_MAX_CONTENT_LENGTH = 4096; - @ClassRule - public static final TestExecutorResource<ScheduledExecutorService> EXECUTOR_RESOURCE = - TestingUtils.defaultExecutorResource(); + @RegisterExtension + public static final TestExecutorExtension<ScheduledExecutorService> EXECUTOR_RESOURCE = Review Comment: fixed it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org