Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2761 - 2770 of 3,205 for throwIt (0.31 sec)

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java

                sb.append("</tr>");
                sb.append(LS);
            }
            sb.append("</table>");
            return sb.toString();
        }
    
        @Test
        void testOptionsAsHtml() throws IOException {
            Path options = Paths.get("target/test-classes/options.html");
            Files.writeString(options, getOptionsAsHtml(), StandardCharsets.UTF_8);
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/InternersTest.java

        assertEquals(Strength.WEAK, internerImpl.map.keyStrength());
        assertEquals(concurrencyLevel, internerImpl.map.concurrencyLevel);
      }
    
    
      public void testWeak_afterGC() throws InterruptedException {
        MyInt canonical = new MyInt(5);
        MyInt not = new MyInt(5);
    
        Interner<MyInt> pool = Interners.newWeakInterner();
        assertSame(canonical, pool.intern(canonical));
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 17:02:07 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

        }
      }
    
      /** Confirm that runtime exceptions thrown inside of OkHttp propagate to the caller.  */
      @Test
      fun unexpectedExceptionSync() {
        client =
          client
            .newBuilder()
            .dns { hostname: String? -> throw RuntimeException("boom!") }
            .build()
        server.enqueue(MockResponse())
        assertFailsWith<RuntimeException> {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/PrimitiveSink.java

       * {@code bytes[off + len - 1]} is the last.
       *
       * @param bytes a byte array
       * @param off the start offset in the array
       * @param len the number of bytes to write
       * @return this instance
       * @throws IndexOutOfBoundsException if {@code off < 0} or {@code off + len > bytes.length} or
       *     {@code len < 0}
       */
      @CanIgnoreReturnValue
      PrimitiveSink putBytes(byte[] bytes, int off, int len);
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt

          }
        } catch (e: IllegalArgumentException) {
          if ("Jar does not have a symbolic name" in e.message!!) {
            println("Skipped non-OSGi dependency: ${file.name}")
            return
          }
          throw e
        }
      }
    
      companion object {
        val fileSystem = FileSystem.SYSTEM
    
        /** Each is the Bundle-SymbolicName of an OkHttp module's OSGi configuration.  */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Authenticator.kt

       * available. It may also not be provided when an authenticator is re-used manually in an
       * application interceptor, such as when implementing client-specific retries.
       */
      @Throws(IOException::class)
      fun authenticate(
        route: Route?,
        response: Response,
      ): Request?
    
      companion object {
        /** An authenticator that knows no credentials and makes no attempt to authenticate. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/CommonsCliUpgradeOptions.java

    /**
     * Implementation of {@link UpgradeOptions} (base + mvnup).
     */
    public class CommonsCliUpgradeOptions extends CommonsCliOptions implements UpgradeOptions {
        public static CommonsCliUpgradeOptions parse(String[] args) throws ParseException {
            CLIManager cliManager = new CLIManager();
            return new CommonsCliUpgradeOptions(Options.SOURCE_CLI, cliManager, cliManager.parse(args));
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Sep 29 14:48:39 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

        extends SortedMapInterfaceTest<K, V> {
      public AbstractImmutableSortedMapMapInterfaceTest() {
        super(false, false, false, false, false);
      }
    
      @Override
      protected SortedMap<K, V> makeEmptyMap() {
        throw new UnsupportedOperationException();
      }
    
      private static final Joiner JOINER = Joiner.on(", ");
    
      @Override
      protected void assertMoreInvariants(Map<K, V> map) {
        // TODO: can these be moved to MapInterfaceTest?
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java

            assertEquals(expected, info.toString());
        }
    
        // Test cases for Trans2FindFirst2Response class
        @Test
        void testReadString_Unicode() throws UnsupportedEncodingException {
            response.useUnicode = true;
            String expected = "test";
            byte[] src = expected.getBytes("UTF-16LE");
            String result = response.readString(src, 0, src.length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

        if (cancel) {
          cancel = false
          eventSource.cancel()
        }
      }
    
      private fun nextEvent(): Any =
        events.poll(10, TimeUnit.SECONDS)
          ?: throw AssertionError("Timed out waiting for event.")
    
      fun assertExhausted() {
        assertThat(events).isEmpty()
      }
    
      fun assertEvent(
        id: String?,
        type: String?,
        data: String,
      ) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 11:32:52 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top