Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for ex (0.29 sec)

  1. guava-tests/test/com/google/common/base/ThrowablesTest.java

        RuntimeException re = new RuntimeException(iae);
        IllegalStateException ex = new IllegalStateException(re);
    
        assertEquals(asList(ex, re, iae, sue), Throwables.getCausalChain(ex));
        assertSame(sue, Iterables.getOnlyElement(Throwables.getCausalChain(sue)));
    
        List<Throwable> causes = Throwables.getCausalChain(ex);
        try {
          causes.add(new RuntimeException());
          fail("List should be unmodifiable");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        RuntimeException re = new RuntimeException(iae);
        IllegalStateException ex = new IllegalStateException(re);
    
        assertEquals(asList(ex, re, iae, sue), Throwables.getCausalChain(ex));
        assertSame(sue, Iterables.getOnlyElement(Throwables.getCausalChain(sue)));
    
        List<Throwable> causes = Throwables.getCausalChain(ex);
        try {
          causes.add(new RuntimeException());
          fail("List should be unmodifiable");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/SuppliersTest.java

            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
        // Should get an exception when we try to serialize.
        RuntimeException ex = assertThrows(RuntimeException.class, () -> reserialize(memoizedSupplier));
        assertThat(ex).hasCauseThat().isInstanceOf(java.io.NotSerializableException.class);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/SuppliersTest.java

            .isEqualTo("Suppliers.memoize(<supplier that returned 10>)");
    
        // Should get an exception when we try to serialize.
        RuntimeException ex = assertThrows(RuntimeException.class, () -> reserialize(memoizedSupplier));
        assertThat(ex).hasCauseThat().isInstanceOf(java.io.NotSerializableException.class);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        try {
          UnsignedBytes.checkedCast(value);
          fail("Cast to byte should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      public void testCompare() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        byte[] actual = new byte[bytes.length * 2];
        IllegalStateException ex =
            assertThrows(IllegalStateException.class, () -> in.readFully(actual));
        assertThat(ex).hasCauseThat().isInstanceOf(EOFException.class);
      }
    
      public void testNewDataInput_readFullyWithOffset() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/ShortsTest.java

        try {
          Shorts.checkedCast(value);
          fail("Cast to short should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      public void testCompare() {
        for (short x : VALUES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        byte[] actual = new byte[bytes.length * 2];
        IllegalStateException ex =
            assertThrows(IllegalStateException.class, () -> in.readFully(actual));
        assertThat(ex).hasCauseThat().isInstanceOf(EOFException.class);
      }
    
      public void testNewDataInput_readFullyWithOffset() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (1)
  9. guava-tests/test/com/google/common/primitives/IntsTest.java

        try {
          Ints.checkedCast(value);
          fail("Cast to int should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      public void testCompare() {
        for (int x : VALUES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/CharsTest.java

        try {
          Chars.checkedCast(value);
          fail("Cast to char should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      public void testCompare() {
        for (char x : VALUES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
Back to top