reswqa commented on code in PR #20306: URL: https://github.com/apache/flink/pull/20306#discussion_r925236630
########## flink-dstl/flink-dstl-dfs/src/test/java/org/apache/flink/changelog/fs/StateChangeFsUploaderTest.java: ########## @@ -19,18 +19,32 @@ package org.apache.flink.changelog.fs; import org.apache.flink.api.common.JobID; +import org.apache.flink.core.fs.FSDataOutputStream; +import org.apache.flink.core.fs.FileSystem; import org.apache.flink.core.fs.Path; +import org.apache.flink.core.fs.local.LocalDataOutputStream; +import org.apache.flink.core.fs.local.LocalFileSystem; +import org.junit.Rule; import org.junit.jupiter.api.Test; +import org.junit.rules.TemporaryFolder; +import java.io.File; import java.io.IOException; +import java.nio.file.FileAlreadyExistsException; +import java.util.Collections; +import java.util.concurrent.atomic.AtomicBoolean; import static org.apache.flink.runtime.metrics.groups.UnregisteredMetricGroups.createUnregisteredTaskManagerJobMetricGroup; +import static org.apache.flink.util.Preconditions.checkNotNull; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; /** {@link StateChangeFsUploader} test. */ class StateChangeFsUploaderTest { Review Comment: For assertion, I suggest using AssertJ instead of Junit's, and you can find the reason here: https://flink.apache.org/contributing/code-style-and-quality-common.html#testing and https://docs.google.com/document/d/1514Wa_aNB9bJUen4xm5uiuXOooOJTtXqS_Jqk9KJitU/edit#heading=h.dson7yjrbvvx -- 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