GJL commented on a change in pull request #7697: [FLINK-11578][tests] Port BackPressureStatsTrackerImplITCase to new code base URL: https://github.com/apache/flink/pull/7697#discussion_r257008935
########## File path: flink-runtime/src/test/java/org/apache/flink/runtime/rest/handler/legacy/backpressure/BackPressureStatsTrackerImplITCase.java ########## @@ -39,277 +32,200 @@ import org.apache.flink.runtime.jobgraph.JobGraph; import org.apache.flink.runtime.jobgraph.JobVertex; import org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable; -import org.apache.flink.runtime.messages.JobManagerMessages; -import org.apache.flink.runtime.testingUtils.TestingJobManagerMessages; -import org.apache.flink.runtime.testingUtils.TestingUtils; +import org.apache.flink.runtime.minicluster.TestingMiniCluster; +import org.apache.flink.runtime.minicluster.TestingMiniClusterConfiguration; +import org.apache.flink.runtime.testtasks.BlockingNoOpInvokable; +import org.apache.flink.runtime.testutils.CommonTestUtils; import org.apache.flink.util.TestLogger; -import akka.actor.ActorSystem; -import akka.testkit.JavaTestKit; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; +import org.hamcrest.Description; +import org.hamcrest.Matcher; +import org.hamcrest.TypeSafeDiagnosingMatcher; +import org.junit.After; +import org.junit.Before; import org.junit.Test; +import java.io.IOException; +import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.Optional; -import java.util.concurrent.CountDownLatch; +import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import java.util.stream.Collectors; +import java.util.stream.IntStream; -import scala.concurrent.duration.FiniteDuration; - -import static org.apache.flink.runtime.testingUtils.TestingJobManagerMessages.AllVerticesRunning; -import static org.apache.flink.runtime.testingUtils.TestingJobManagerMessages.ExecutionGraphFound; -import static org.apache.flink.runtime.testingUtils.TestingJobManagerMessages.RequestExecutionGraph; -import static org.apache.flink.runtime.testingUtils.TestingJobManagerMessages.WaitForAllVerticesToBeRunning; +import static org.apache.flink.util.Preconditions.checkState; +import static org.hamcrest.Matchers.equalTo; +import static org.hamcrest.Matchers.is; +import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertTrue; /** * Simple back pressured task test. + * + * @see BackPressureStatsTrackerImpl */ public class BackPressureStatsTrackerImplITCase extends TestLogger { - private static NetworkBufferPool networkBufferPool; - private static ActorSystem testActorSystem; + private static final int TIMEOUT_SECONDS = 10; Review comment: Will change to long. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services