Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 357 for 1L (0.02 sec)

  1. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            DataStoreParams params = new DataStoreParams();
            Map<String, Object> data = new HashMap<>();
            data.put("key1", "value1");
            callback.store(params, data);
    
            assertEquals(1L, callback.getDocumentSize());
            assertEquals(100L, callback.getExecuteTime());
    
            // Test multiple stores
            callback.store(params, data);
            callback.store(params, data);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

       */
      public void assertSuccess(Object expectedData) throws Throwable {
        // Verify that the listener executed in a reasonable amount of time.
        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          Assert.assertEquals(expectedData, future.get());
        } catch (ExecutionException e) {
          throw e.getCause();
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri May 12 18:12:42 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/LongMath.java

      static final long[] factorials = {
        1L,
        1L,
        1L * 2,
        1L * 2 * 3,
        1L * 2 * 3 * 4,
        1L * 2 * 3 * 4 * 5,
        1L * 2 * 3 * 4 * 5 * 6,
        1L * 2 * 3 * 4 * 5 * 6 * 7,
        1L * 2 * 3 * 4 * 5 * 6 * 7 * 8,
        1L * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9,
        1L * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10,
        1L * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11,
        1L * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 * 11 * 12,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         * in the format of [System.currentTimeMillis]. Specify -1L for both values to use the default
         * interval, 24 hours starting when the certificate is created.
         */
        fun validityInterval(
          notBefore: Long,
          notAfter: Long,
        ) = apply {
          require(notBefore <= notAfter && notBefore == -1L == (notAfter == -1L)) {
            "invalid interval: $notBefore..$notAfter"
          }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

          try {
            val upstreamBytesRead = upstream!!.read(upstreamBuffer, bufferMaxSize)
    
            // If we've exhausted upstream, we're done.
            if (upstreamBytesRead == -1L) {
              commit(upstreamPos)
              return -1L
            }
    
            // Update this source and prepare this call's result.
            val bytesRead = minOf(upstreamBytesRead, byteCount)
            upstreamBuffer.copyTo(sink, 0, bytesRead)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

       */
      @Test
      fun pinRootNotPresentInChain() {
        // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703
        val rootCa =
          HeldCertificate
            .Builder()
            .serialNumber(1L)
            .certificateAuthority(1)
            .commonName("root")
            .build()
        val intermediateCa =
          HeldCertificate
            .Builder()
            .signedBy(rootCa)
            .certificateAuthority(0)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 24.3K bytes
    - Viewed (1)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerTest.kt

          "FINE: Q10000 starting              : task",
          "FINE: Q10000 finished run in   0 µs: task",
        )
      }
    
      @Test fun executeRepeated() {
        val delays = mutableListOf(50.µs, 150.µs, -1L)
        redQueue.schedule("task", 100.µs) {
          log += "run@${taskFaker.nanoTime}"
          return@schedule delays.removeAt(0)
        }
    
        taskFaker.advanceUntil(0.µs)
        assertThat(log).containsExactly()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 23K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.constrainToRange(1L, 0L, 5L)).isEqualTo(1L);
        assertThat(Longs.constrainToRange(1L, 1L, 5L)).isEqualTo(1L);
        assertThat(Longs.constrainToRange(1L, 3L, 5L)).isEqualTo(3L);
        assertThat(Longs.constrainToRange(0L, -5L, -1L)).isEqualTo(-1L);
        assertThat(Longs.constrainToRange(5L, 2L, 2L)).isEqualTo(2L);
        assertThrows(IllegalArgumentException.class, () -> Longs.constrainToRange(1L, 3L, 2L));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/entity/PingResponseTest.java

            // Test that the constructor and getters work with proper setup
            FessConfig mockConfig = new FessConfig.SimpleImpl() {
                private static final long serialVersionUID = 1L;
    
                @Override
                public Set<String> getApiPingEsFieldSet() {
                    return new HashSet<>();
                }
            };
            ComponentUtil.register(mockConfig, "fessConfig");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            String[] inputs = { "input" };
            CharMappingItem item = new CharMappingItem(1L, inputs, "line1\nline2");
    
            assertEquals("line1 line2", item.getOutput());
        }
    
        public void test_constructor_withNullOutput() {
            // Test with null output
            String[] inputs = { "input" };
            CharMappingItem item = new CharMappingItem(1L, inputs, null);
    
            assertNull(item.getOutput());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
Back to top