Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2151 - 2160 of 2,367 for Exceptions (0.04 sec)

  1. 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("%s not found in exception text: %s", value, ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      // We need to test that our method behaves like the JDK method.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 29.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

        public void testMemoryBasedCacheClose() throws IOException {
            byte[] data = "Hello, World!".getBytes();
            ContentCache cache = new ContentCache(data);
    
            // Memory-based cache close should not throw exception
            cache.close();
    
            // Should still be able to get input stream after close for memory cache
            try (InputStream stream = cache.getInputStream()) {
                assertNotNull(stream);
            }
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/UniAddressTest.java

                verify(mockAddress, times(1)).toInetAddress();
            }
    
            @Test
            void shouldReturnNullWhenWrappedIsNeitherInetAddressNorAddress() throws Exception {
                // UniAddress only accepts InetAddress, NbtAddress (which implements Address), or Address
                // Testing with NbtAddress which doesn't return anything from toInetAddress
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

      private val codec: ExchangeCodec,
    ) {
      /** True if the request body need not complete before the response body starts. */
      internal var isDuplex: Boolean = false
        private set
    
      /** True if there was an exception on the connection to the peer. */
      internal var hasFailure: Boolean = false
        private set
    
      internal val connection: RealConnection
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SecurityBlobTest.java

        // Uses reflection to set internal array to null to exercise defensive branch in length()
        @Test
        @DisplayName("length(): handles internal null defensively")
        void length_handlesNullInternalArray() throws Exception {
            // Arrange
            SecurityBlob blob = new SecurityBlob(new byte[] { 1, 2, 3 });
    
            // Force internal field to null via reflection to exercise defensive branch
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java

    import org.apache.http.client.methods.HttpUriRequest;
    import org.apache.http.message.BasicNameValuePair;
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.io.InputStreamUtil;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.core.misc.Pair;
    import org.codelibs.core.stream.StreamUtil;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.3K bytes
    - Viewed (1)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java

            }
        }
    
        public void test_closeWithoutFile() throws IOException {
            // Test close without any file
            ResponseData data = new ResponseData();
            data.close(); // Should not throw exception
        }
    
        public void test_complexScenario() {
            // Test complex scenario with multiple operations
            ResponseData data = new ResponseData();
    
            // Set various properties
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            directoryLeaseManager = new DirectoryLeaseManager(context, baseLeaseManager);
        }
    
        @AfterEach
        public void tearDown() throws Exception {
            if (directoryLeaseManager != null) {
                directoryLeaseManager.shutdown();
            }
            if (mocks != null) {
                mocks.close();
            }
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(cache.localCache.defaultLoader).isSameInstanceAs(loader);
      }
    
      // null parameters test
    
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheLoader<Object, Object> loader = identityLoader();
        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ComparisonChain.java

       * href="https://docs.oracle.com/javase/tutorial/collections/interfaces/order.html">mutually
       * comparable</a>. If you pass objects that are not mutually comparable, this method may throw an
       * exception. (The reason for this decision is lost to time, but the reason <i>might</i> be that
       * we wanted to support legacy classes that implement the raw type {@code Comparable} (instead of
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top