Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 448 for throwing (0.04 sec)

  1. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
      public EqualsTester testEquals() {
        RelationshipTester<Object> delegate =
            new RelationshipTester<>(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/HostSpecifier.java

        }
    
        throw new IllegalArgumentException(
            "Domain name does not have a recognized public suffix: " + host);
      }
    
      /**
       * Attempts to return a {@code HostSpecifier} for the given string, throwing an exception if
       * parsing fails. Always use this method in preference to {@link #fromValid(String)} for a
       * specifier that is not already known to be valid.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       * be included, and it's much easier to implement the interpretation that they not be. Finally, a
       * call to {@code shutdown} or {@code shutdownNow} may result in concurrent calls to {@code
       * invokeAll/invokeAny} throwing RejectedExecutionException, although a subset of the tasks may
       * already have been executed.
       *
       * @since 32.0.0 (taking the place of a method with a different return type from 15.0)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

      private final List<E> expectedElements;
      private final int startIndex;
      private final KnownOrder knownOrder;
    
      /**
       * Meta-exception thrown by {@link AbstractIteratorTester.MultiExceptionListIterator} instead of
       * throwing any particular exception type.
       */
      private abstract static class PermittedMetaException extends RuntimeException {
        static final PermittedMetaException UOE_OR_ISE =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/SmbPipeHandleTest.java

         * Tests related to the lifecycle management of the handle (e.g., closing).
         */
        @Nested
        public class LifecycleManagementTest {
    
            /**
             * Verifies that the close method can be called without throwing an exception.
             * @throws CIFSException if an error occurs during close.
             */
            @Test
            public void testClose() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        multimap.put("foo", 3);
        assertTrue(multimap.replaceValues("foo", asList(2, 4)) instanceof RandomAccess);
        assertTrue(multimap.replaceValues("bar", asList(2, 4)) instanceof RandomAccess);
      }
    
      /** Test throwing ConcurrentModificationException when a sublist's ancestor's delegate changes. */
      public void testSublistConcurrentModificationException() {
        ListMultimap<String, Integer> multimap = create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

            // Instead of directly calling expired() which may fail due to system dependencies
            // in test environments, we test that the method exists and can be invoked
            // without throwing unexpected exceptions
            try {
                // Create a new instance to ensure clean state
                SystemMonitorTarget testTarget = new SystemMonitorTarget();
    
                // Try to call the expired method
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

            @Override
            public void call(Object object) {
              throw new RuntimeException();
            }
    
            @Override
            public String toString() {
              return "throwing()";
            }
          };
    
      public void testEnqueueAndDispatch() {
        Object listener = new Object();
        ListenerCallQueue<Object> queue = new ListenerCallQueue<>();
        queue.addListener(listener, directExecutor());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

            @Override
            public void call(Object object) {
              throw new RuntimeException();
            }
    
            @Override
            public String toString() {
              return "throwing()";
            }
          };
    
      public void testEnqueueAndDispatch() {
        Object listener = new Object();
        ListenerCallQueue<Object> queue = new ListenerCallQueue<>();
        queue.addListener(listener, directExecutor());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedType = "OAuth";
            String expectedMessage = "OAuth token is invalid";
    
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top