diff options
author | cushon <cushon@google.com> | 2018-02-24 14:05:37 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-24 14:07:29 -0800 |
commit | 978cb00899ec7ddaa0512c6b5c8a2dae8bfc1146 (patch) | |
tree | c458687c04e96432c0da9f2d6155062e57653739 /src/test/java/com/google/devtools/build/lib/collect | |
parent | 9817539fbd399bbc2751d7527d3b1c0a104a5ad6 (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/collect')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCacheTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCacheTest.java b/src/test/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCacheTest.java index cdf0a6f081..2570af9007 100644 --- a/src/test/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCacheTest.java +++ b/src/test/java/com/google/devtools/build/lib/collect/nestedset/NestedSetFingerprintCacheTest.java @@ -149,14 +149,14 @@ public class NestedSetFingerprintCacheTest { // Make sure a ParametrizedMapFn doesn't get blacklisted until it exceeds its instance count cache.addNestedSetToFingerprint(new IntParametrizedMapFn(1), new Fingerprint(), nestedSet); cache.addNestedSetToFingerprint(new IntParametrizedMapFn(2), new Fingerprint(), nestedSet); - MoreAsserts.expectThrows( + MoreAsserts.assertThrows( IllegalArgumentException.class, () -> cache.addNestedSetToFingerprint( new IntParametrizedMapFn(3), new Fingerprint(), nestedSet)); // Make sure a capturing method reference gets blacklisted - MoreAsserts.expectThrows( + MoreAsserts.assertThrows( IllegalArgumentException.class, () -> { for (int i = 0; i < 2; ++i) { @@ -166,7 +166,7 @@ public class NestedSetFingerprintCacheTest { }); // Do make sure that a capturing lambda gets blacklisted - MoreAsserts.expectThrows( + MoreAsserts.assertThrows( IllegalArgumentException.class, () -> { for (int i = 0; i < 2; ++i) { |