Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testThrowIfUnchecked_Unchecked (0.49 sec)

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

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Throwables}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    public class ThrowablesTest extends TestCase {
      public void testThrowIfUnchecked_Unchecked() {
        try {
          throwIfUnchecked(new SomeUncheckedException());
          fail();
        } catch (SomeUncheckedException expected) {
        }
      }
    
      public void testThrowIfUnchecked_Error() {
        try {
    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

    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Throwables}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    public class ThrowablesTest extends TestCase {
      public void testThrowIfUnchecked_Unchecked() {
        try {
          throwIfUnchecked(new SomeUncheckedException());
          fail();
        } catch (SomeUncheckedException expected) {
        }
      }
    
      public void testThrowIfUnchecked_Error() {
        try {
    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)
Back to top