diff options
Diffstat (limited to 'guava-tests/test/com/google/common/primitives/SignedBytesTest.java')
-rw-r--r-- | guava-tests/test/com/google/common/primitives/SignedBytesTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/guava-tests/test/com/google/common/primitives/SignedBytesTest.java b/guava-tests/test/com/google/common/primitives/SignedBytesTest.java index 8e205fe..18863a5 100644 --- a/guava-tests/test/com/google/common/primitives/SignedBytesTest.java +++ b/guava-tests/test/com/google/common/primitives/SignedBytesTest.java @@ -65,7 +65,7 @@ public class SignedBytesTest extends TestCase { assertEquals(LEAST, SignedBytes.saturatedCast(Long.MIN_VALUE)); } - private static void assertCastFails(long value) { + private void assertCastFails(long value) { try { SignedBytes.checkedCast(value); fail("Cast to byte should have failed: " + value); @@ -155,7 +155,9 @@ public class SignedBytesTest extends TestCase { } @GwtIncompatible("NullPointerTester") - public void testNulls() { - new NullPointerTester().testAllPublicStaticMethods(SignedBytes.class); + public void testNulls() throws Exception { + NullPointerTester tester = new NullPointerTester(); + tester.setDefault(byte[].class, new byte[0]); + tester.testAllPublicStaticMethods(SignedBytes.class); } } |