aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/pkgcache
diff options
context:
space:
mode:
authorGravatar cushon <cushon@google.com>2018-02-24 14:05:37 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-24 14:07:29 -0800
commit978cb00899ec7ddaa0512c6b5c8a2dae8bfc1146 (patch)
treec458687c04e96432c0da9f2d6155062e57653739 /src/test/java/com/google/devtools/build/lib/pkgcache
parent9817539fbd399bbc2751d7527d3b1c0a104a5ad6 (diff)
expectThrows has been renamed to assertThrows
More information: https://github.com/junit-team/junit5/issues/531 PiperOrigin-RevId: 186900384
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/pkgcache')
-rw-r--r--src/test/java/com/google/devtools/build/lib/pkgcache/PathPackageLocatorTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/pkgcache/PathPackageLocatorTest.java b/src/test/java/com/google/devtools/build/lib/pkgcache/PathPackageLocatorTest.java
index a9b224f026..73c3c37a6a 100644
--- a/src/test/java/com/google/devtools/build/lib/pkgcache/PathPackageLocatorTest.java
+++ b/src/test/java/com/google/devtools/build/lib/pkgcache/PathPackageLocatorTest.java
@@ -14,7 +14,7 @@
package com.google.devtools.build.lib.pkgcache;
import static com.google.common.truth.Truth.assertThat;
-import static com.google.devtools.build.lib.testutil.MoreAsserts.expectThrows;
+import static com.google.devtools.build.lib.testutil.MoreAsserts.assertThrows;
import static org.junit.Assert.fail;
import com.google.common.collect.ImmutableList;
@@ -273,7 +273,7 @@ public class PathPackageLocatorTest extends FoundationTestCase {
createBuildFile(nonExistentRoot1, "X");
// The package isn't found
// The package is found, because we didn't drop the root:
- expectThrows(
+ assertThrows(
NoSuchPackageException.class,
() -> locator.getPackageBuildFile(PackageIdentifier.createInMainRepo("X")));