Skip to content

Commit

Permalink
Replace MoreAsserts.assertThrows with Assert.assertThrows
Browse files Browse the repository at this point in the history
We're now using a junit version that supports it.

PiperOrigin-RevId: 303209907
  • Loading branch information
michajlo authored and copybara-github committed Mar 26, 2020
1 parent 4677c11 commit 99b7efb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions tools/java/runfiles/testing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ java_test(
test_class = "com.google.devtools.build.runfiles.RunfilesTest",
deps = [
":test_deps",
"//src/test/java/com/google/devtools/build/lib/testutil",
"//src/test/java/com/google/devtools/build/lib/testutil:JunitUtils",
],
)

Expand All @@ -31,8 +29,6 @@ java_test(
test_class = "com.google.devtools.build.runfiles.UtilTest",
deps = [
":test_deps",
"//src/test/java/com/google/devtools/build/lib/testutil",
"//src/test/java/com/google/devtools/build/lib/testutil:JunitUtils",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tools/java/runfiles/testing/RunfilesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package com.google.devtools.build.runfiles;

import static com.google.common.truth.Truth.assertThat;
import static com.google.devtools.build.lib.testutil.MoreAsserts.assertThrows;
import static org.junit.Assert.assertThrows;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
Expand Down
2 changes: 1 addition & 1 deletion tools/java/runfiles/testing/UtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package com.google.devtools.build.runfiles;

import static com.google.common.truth.Truth.assertThat;
import static com.google.devtools.build.lib.testutil.MoreAsserts.assertThrows;
import static org.junit.Assert.assertThrows;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down

0 comments on commit 99b7efb

Please sign in to comment.