Search Options

Results per page
Sort
Preferred Languages
Advance

Results 981 - 990 of 1,444 for scratch (0.09 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

          while (responseBody.read(buffer) != -1) {
          }
        }
        responseBody.close()
      }
    
      private fun sleep(delayMillis: Int) {
        try {
          Thread.sleep(delayMillis.toLong())
        } catch (e: InterruptedException) {
          Thread.currentThread().interrupt()
        }
      }
    
      private fun interruptLater(delayMillis: Int) {
        val toInterrupt = Thread.currentThread()
        val interruptingCow =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloseablesTest.java

          throws IOException {
        try {
          Closeables.close(closeable, swallowException);
          if (expectThrown) {
            fail("Didn't throw exception.");
          }
        } catch (IOException e) {
          if (!expectThrown) {
            fail("Threw exception");
          }
        }
        verify(closeable).close();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

            assertArgumentNotEmpty("name", name);
    
            try {
                final Enumeration<URL> e = loader.getResources(name);
                return new EnumerationIterator<>(e);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * 指定されたバイナリ名を持つクラスをロードします。
         *
         * @param loader
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/AllTests.java

                    while ( it.hasNext() ) {
                        Path config = it.next();
                        loadConfigFile(config, applyMutations, configs);
                    }
                }
                catch ( IOException e ) {
                    log.error("Failed to load test config directory " + System.getProperty(TestProperties.TEST_CONFIG_DIR), e);
                }
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 14.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(-1, matcher.indexIn(""));
        assertEquals(-1, matcher.indexIn("", 0));
        try {
          matcher.indexIn("", 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          matcher.indexIn("", -1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        assertEquals(-1, matcher.lastIndexIn(""));
        assertFalse(matcher.matchesAnyOf(""));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/curl/CurlResponse.java

                    if (length != 0) {
                        baos.write(bytes, 0, length);
                    }
                    length = bis.read(bytes);
                }
                return baos.toString(encoding);
            } catch (final Exception e) {
                throw new CurlException("Failed to access the content.", e);
            }
        }
    
        public InputStream getContentAsStream() throws IOException {
            if (contentCache == null) {
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

                      actualIsOccupiedByCurrentThread.set(monitor.isOccupiedByCurrentThread());
                      actualOccupiedDepth.set(monitor.getOccupiedDepth());
                    } catch (Throwable t) {
                      thrown.set(t);
                    }
                  }
                }));
        assertNull(thrown.get());
        assertEquals(expectedIsOccupied, actualIsOccupied.get());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

              collection.removeIf(
                  x -> {
                    throw new AssertionError("predicate should never be called");
                  }));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/net/UrlEscaperTesting.java

        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
          fail("Escaping null string should throw exception");
        } catch (NullPointerException x) {
          // pass
        }
    
        // All URL escapers should leave 0-9, A-Z, a-z unescaped
        assertUnescaped(e, 'a');
        assertUnescaped(e, 'z');
        assertUnescaped(e, 'A');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 17:53:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

                      actualIsOccupiedByCurrentThread.set(monitor.isOccupiedByCurrentThread());
                      actualOccupiedDepth.set(monitor.getOccupiedDepth());
                    } catch (Throwable t) {
                      thrown.set(t);
                    }
                  }
                }));
        assertNull(thrown.get());
        assertEquals(expectedIsOccupied, actualIsOccupied.get());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top