diff options
author | 2017-06-01 10:05:42 +0200 | |
---|---|---|
committer | 2017-06-01 14:08:58 +0200 | |
commit | 4a45ea8dfd5f10c2b5956784ceb2972713c271bc (patch) | |
tree | 2466d3514af00ad97234efd91fb24d612c265a15 /src/test/java/com/google/devtools/build/lib/vfs | |
parent | 3c93e0e486ee93356acd0d5e02e65b20e71f31ac (diff) |
Remove all imports of org.junit.Assert except for static imports of #fail().
RELNOTES: None.
PiperOrigin-RevId: 157685150
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/vfs')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java b/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java index d75c1bd2c9..d68308c19c 100644 --- a/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java +++ b/src/test/java/com/google/devtools/build/lib/vfs/PathFragmentWindowsTest.java @@ -15,9 +15,9 @@ package com.google.devtools.build.lib.vfs; import static com.google.common.truth.Truth.assertThat; import static com.google.common.truth.Truth.assertWithMessage; +import static org.junit.Assert.fail; import java.io.File; -import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -141,7 +141,7 @@ public class PathFragmentWindowsTest { private void assertCantComputeRelativeTo(String path, String relativeTo) throws Exception { try { PathFragment.create(path).relativeTo(relativeTo); - Assert.fail("expected failure"); + fail("expected failure"); } catch (Exception e) { assertThat(e).hasMessageThat().contains("is not beneath"); } |