Skip to content
Permalink
Browse files

[SMALLFIX] Use static imports for standard test utilities

I alter the non-static import to a static import and rewrite all the
corresponding assert statements for standard test utilities in
alluxio/core/server/worker/src/test/java/alluxio/worker/block/allocator/AllocatorContractTest.java

pr-link: #8984
change-id: cid-3ae590b80d5f5172b9cf80a28ea420b0ec5ba0cd
  • Loading branch information...
nomanous authored and alluxio-bot committed May 11, 2019
1 parent e721c5b commit 3c3f9ff3fb2eb7e10b2ab953ed430f855d571bbe
@@ -11,12 +11,13 @@

package alluxio.worker.block.allocator;

import static org.junit.Assert.fail;

import alluxio.conf.ServerConfiguration;
import alluxio.conf.PropertyKey;

import com.google.common.reflect.ClassPath;
import com.google.common.reflect.Reflection;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

@@ -54,7 +55,7 @@ public void before() throws Exception {
}
}
} catch (Exception e) {
Assert.fail("Failed to find implementation of allocate strategy");
fail("Failed to find implementation of allocate strategy");
}
}

0 comments on commit 3c3f9ff

Please sign in to comment.
You can’t perform that action at this time.