Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,468 for catch (0.15 sec)

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

          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckArgument_simpleMessage_success() {
        Preconditions.checkArgument(true, IGNORE_ME);
      }
    
      public void testCheckArgument_simpleMessage_failure() {
        try {
          Preconditions.checkArgument(false, new Message());
          fail("no exception thrown");
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CloserTest.java

        IOException exception = new IOException();
    
        try {
          try {
            throw exception;
          } catch (Throwable e) {
            throw closer.rethrow(e);
          } finally {
            closer.close();
          }
        } catch (Throwable expected) {
          assertSame(exception, expected);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FluentIterableTest.java

        try {
          fluent(1, null, 2).toMap(Functions.constant("foo"));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testToMap_nullValue() {
        try {
          fluent(1, 2, 3).toMap(Functions.constant(null));
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testIndex() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 31.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/LongMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/FinalizableReferenceQueue.java

        boolean threadStarted = false;
        try {
          startFinalizer.invoke(null, FinalizableReference.class, queue, frqRef);
          threadStarted = true;
        } catch (IllegalAccessException impossible) {
          throw new AssertionError(impossible); // startFinalizer() is public
        } catch (Throwable t) {
          logger.log(
              Level.INFO,
              "Failed to start reference finalizer thread."
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/FinalizableReferenceQueue.java

        boolean threadStarted = false;
        try {
          startFinalizer.invoke(null, FinalizableReference.class, queue, frqRef);
          threadStarted = true;
        } catch (IllegalAccessException impossible) {
          throw new AssertionError(impossible); // startFinalizer() is public
        } catch (Throwable t) {
          logger.log(
              Level.INFO,
              "Failed to start reference finalizer thread."
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                            Hexdump.hexdump( log, rcv_buf, 0, in.getLength() );
                        }
    
                        response.notify();
                    }
                }
            } catch(SocketTimeoutException ste) {
            } catch( Exception ex ) {
                if( log.level > 2 )
                    ex.printStackTrace( log );
            } finally {
                tryClose();
            }
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

        try {
          super.testContainsKey();
        } catch (ClassCastException tolerated) {
        }
      }
    
      @J2ktIncompatible // https://youtrack.jetbrains.com/issue/KT-58242/ undefined behavior (crash)
      @Override
      public void testEntrySetContainsEntryIncompatibleKey() {
        try {
          super.testEntrySetContainsEntryIncompatibleKey();
        } catch (ClassCastException tolerated) {
        }
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          fail("Should fail on null reference");
        } catch (NullPointerException e) {
        }
      }
    
      /** Test equalObjects after adding multiple instances at once with a null */
      public void testAddTwoEqualObjectsAtOnceWithNull() {
        try {
          equalsTester.addEqualityGroup(reference, equalObject1, null);
          fail("Should fail on null equal object");
        } catch (NullPointerException e) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

          fail("unsupported multiset.add(E, int) didn't throw exception");
        } catch (UnsupportedOperationException required) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddOccurrencesNegative() {
        try {
          getMultiset().add(e0(), -1);
          fail("multiset.add(E, -1) didn't throw an exception");
        } catch (IllegalArgumentException required) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.2K bytes
    - Viewed (0)
Back to top