Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5580#discussion_r176662946
  
    --- Diff: 
flink-runtime/src/test/java/org/apache/flink/runtime/filecache/FileCacheReadsFromBlobTest.java
 ---
    @@ -19,30 +19,38 @@
     package org.apache.flink.runtime.filecache;
     
     import org.apache.flink.api.common.JobID;
    -import 
org.apache.flink.api.common.cache.DistributedCache.DistributedCacheEntry;
    +import org.apache.flink.api.common.cache.DistributedCache;
     import org.apache.flink.core.fs.Path;
    +import org.apache.flink.runtime.blob.BlobServer;
    +import org.apache.flink.runtime.blob.PermanentBlobKey;
    +import org.apache.flink.runtime.blob.PermanentBlobService;
    +import org.apache.flink.util.FileUtils;
    +import org.apache.flink.util.InstantiationUtil;
     
    -import org.apache.flink.shaded.guava18.com.google.common.base.Charsets;
     import org.apache.flink.shaded.guava18.com.google.common.io.Files;
     
    +import org.apache.commons.lang3.StringUtils;
     import org.junit.After;
     import org.junit.Before;
     import org.junit.Rule;
     import org.junit.Test;
     import org.junit.rules.TemporaryFolder;
    +import org.junit.runner.RunWith;
    +import org.mockito.runners.MockitoJUnitRunner;
     
     import java.io.File;
     import java.io.IOException;
    +import java.nio.charset.StandardCharsets;
     import java.util.concurrent.Future;
     
    -import static org.junit.Assert.assertFalse;
    +import static org.junit.Assert.assertEquals;
     import static org.junit.Assert.assertTrue;
    -import static org.junit.Assert.fail;
     
     /**
    - * Test delete process of {@link FileCache}. The local cache file should 
not be deleted why another task comes in 5 seconds.
    + * Tests that {@link FileCache} can read files from {@link BlobServer}.
      */
    -public class FileCacheDeleteValidationTest {
    +@RunWith(MockitoJUnitRunner.class)
    --- End diff --
    
    Why is this needed now? I don't see any mocking being added.


---

Reply via email to