mirror of
https://github.com/google/guava.git
synced 2024-10-23 08:44:54 +08:00
Complete the automatable migration to assertThrows
.
And update some attempted suppressions to make them actually work. RELNOTES=n/a PiperOrigin-RevId: 688267287
This commit is contained in:
parent
67f914985e
commit
3d14f1d81b
@ -65,7 +65,7 @@ public class TypeTokenTest extends TestCase {
|
||||
assertEquals(a, b);
|
||||
}
|
||||
|
||||
@SuppressWarnings("TestException") // see comment below
|
||||
@SuppressWarnings("TestExceptionChecker") // see comment below
|
||||
public <T> void testVariableTypeTokenNotAllowed() {
|
||||
/*
|
||||
* We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
|
||||
@ -1252,7 +1252,7 @@ public class TypeTokenTest extends TestCase {
|
||||
assertThrows(IllegalArgumentException.class, () -> type.getSubtype(Iterable.class));
|
||||
}
|
||||
|
||||
@SuppressWarnings("TestException") // see comment below
|
||||
@SuppressWarnings("TestExceptionChecker") // see comment below
|
||||
public <T extends Iterable<String>> void testGetSubtype_fromTypeVariable() {
|
||||
/*
|
||||
* We'd use assertThrows here, but that causes capture() to return null under Java 8, presumably
|
||||
|
@ -65,7 +65,7 @@ public class TypeTokenTest extends TestCase {
|
||||
assertEquals(a, b);
|
||||
}
|
||||
|
||||
@SuppressWarnings("TestException") // see comment below
|
||||
@SuppressWarnings("TestExceptionChecker") // see comment below
|
||||
public <T> void testVariableTypeTokenNotAllowed() {
|
||||
/*
|
||||
* We'd use assertThrows here, but that causes no exception to be thrown under Java 8,
|
||||
@ -1252,7 +1252,7 @@ public class TypeTokenTest extends TestCase {
|
||||
assertThrows(IllegalArgumentException.class, () -> type.getSubtype(Iterable.class));
|
||||
}
|
||||
|
||||
@SuppressWarnings("TestException") // see comment below
|
||||
@SuppressWarnings("TestExceptionChecker") // see comment below
|
||||
public <T extends Iterable<String>> void testGetSubtype_fromTypeVariable() {
|
||||
/*
|
||||
* We'd use assertThrows here, but that causes capture() to return null under Java 8, presumably
|
||||
|
Loading…
Reference in New Issue
Block a user