Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 527 for records (0.12 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

                            barrier.await(1, SECONDS);
    
                            // WAIT #2
                            barrier.await(1, SECONDS);
                            assertTrue(executor.isShutdown());
                            assertFalse(executor.isTerminated());
    
                            // WAIT #3
                            barrier.await(1, SECONDS);
                            return null;
                          });
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  2. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

        runTest {
          server.enqueue(
            MockResponse
              .Builder()
              .bodyDelay(5, TimeUnit.SECONDS)
              .body("abc")
              .build(),
          )
    
          val call = client.newCall(request)
    
          assertFailsWith<TimeoutCancellationException> {
            withTimeout(1.seconds) {
              call.executeAsync().use {
                withContext(Dispatchers.IO) {
                  it.body.string()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      }
    
      public void testTimeToLive_setTwice() {
        CacheBuilder<Object, Object> builder =
            CacheBuilder.newBuilder().expireAfterWrite(3600, SECONDS);
        assertThrows(IllegalStateException.class, () -> builder.expireAfterWrite(3600, SECONDS));
      }
    
      @GwtIncompatible // Duration
      public void testTimeToLive_setTwice_duration() {
        CacheBuilder<Object, Object> builder =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 25.4K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/extensions/LoadedCoreExtension.java

    /**
     * Represents a core extension that has been selected to be loaded.
     * @param coreExtension The extension configuration entry with location tracking.
     * @param entry The loaded entry with descriptor.
     */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Mar 13 12:50:59 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  5. tests/named_argument_test.go

    		t.Errorf("should return record not found error, but got %v", err)
    	}
    
    	DB.Delete(&namedUser)
    
    	var result8 NamedUser
    	if err := DB.Where("name1 = @name OR name2 = @name", map[string]interface{}{"name": "jinzhu-new"}).First(&result8).Error; err == nil || !errors.Is(err, gorm.ErrRecordNotFound) {
    		t.Errorf("should return record not found error, but got %v", err)
    	}
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Dec 21 11:50:00 GMT 2021
    - 2.7K bytes
    - Click Count (0)
  6. compat/maven-embedder/src/test/java/org/apache/maven/cli/event/ExecutionEventLoggerTest.java

            when(project.getGroupId()).thenReturn("org.apache.maven.plugins.overflow");
            when(project.getArtifactId()).thenReturn("maven-project-info-reports-plugin");
            when(project.getPackaging()).thenReturn("maven-plugin");
            when(project.getName()).thenReturn("Apache Maven Project Info Reports Plugin");
            when(project.getVersion()).thenReturn("3.0.0-SNAPSHOT");
            when(event.getProject()).thenReturn(project);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Dec 01 19:41:22 GMT 2024
    - 12.3K bytes
    - Click Count (0)
  7. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

        assertThat(response.body.string()).isEqualTo("hello, OkHttp")
    
        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
        assertThat(recorded.headers["Connection"]).isEqualTo("Keep-Alive")
        assertThat(recorded.headers["User-Agent"]!!).matches(Regex("okhttp/.*"))
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/ConfigureTimeouts.kt

    import okhttp3.Request
    
    class ConfigureTimeouts {
      private val client: OkHttpClient =
        OkHttpClient
          .Builder()
          .connectTimeout(5, TimeUnit.SECONDS)
          .writeTimeout(5, TimeUnit.SECONDS)
          .readTimeout(5, TimeUnit.SECONDS)
          .callTimeout(10, TimeUnit.SECONDS)
          .build()
    
      fun run() {
        val request =
          Request
            .Builder()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  9. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

                return occurrences;
            }
        }
    
        record GroupAnalysis(
                String name,
                List<PathAnalysis> paths,
                long totalUnique,
                long totalOccurrences,
                long totalMemory,
                long totalSavings,
                List<ValueFrequency> mostFrequentValues) {}
    
        record PathAnalysis(
                String path,
                long uniqueStrings,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 13.4K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java

                InputLocation location = reportSet.getLocation("reports");
                Xpp3Dom reports = new Xpp3Dom("reports", location);
                int n = 0;
                for (String report : reportSet.getReports()) {
                    addDom(reports, "report", report, (location == null) ? null : location.getLocation(n++));
                }
                dom.addChild(reports);
            }
    
            return dom;
        }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 9.4K bytes
    - Click Count (0)
Back to Top