Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for getOne (0.03 sec)

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

    /** Unit tests for {@link Futures#getDone}. */
    @GwtCompatible
    @NullUnmarked
    public class FuturesGetDoneTest extends TestCase {
      public void testSuccessful() throws ExecutionException {
        assertThat(getDone(immediateFuture("a"))).isEqualTo("a");
      }
    
      public void testSuccessfulNull() throws ExecutionException {
        assertThat(getDone(immediateVoidFuture())).isEqualTo(null);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 01:35:55 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/ConfigTest.java

            assertEquals(123, Config.getInt(testProperties, "test.int", 0));
            assertEquals(456, Config.getInt(testProperties, "nonexistent.int", 456));
            assertEquals(789, Config.getInt(testProperties, "test.invalid.int", 789));
        }
    
        @Test
        @DisplayName("Should get integer property")
        void testGetInt() {
            assertEquals(123, Config.getInt(testProperties, "test.int"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.Callables.returning;
    import static com.google.common.util.concurrent.Futures.getDone;
    import static com.google.common.util.concurrent.ReflectionFreeAssertThrows.assertThrows;
    import static com.google.common.util.concurrent.TestPlatform.verifyThreadWasNotInterrupted;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. .ci/init.gradle

      }
    }
    
    boolean USE_ARTIFACTORY = false
    
    if (System.getenv('VAULT_ADDR') == null) {
      throw new GradleException("You must set the VAULT_ADDR environment variable to use this init script.")
    }
    
    if (System.getenv('VAULT_ROLE_ID') == null && System.getenv('VAULT_SECRET_ID') == null && System.getenv('VAULT_TOKEN') == null) {
    Registered: Sun Dec 21 06:47:06 UTC 2025
    - Last Modified: Wed Nov 13 10:14:04 UTC 2019
    - 3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/SystemUtil.java

         *
         * @param key the environment variable key
         * @return the environment variable value, or null if not found
         */
        public static String getEnv(String key) {
            return System.getenv(key);
        }
    
        /**
         * Returns the system environment variable value for the specified key, or the default value if not found.
         *
         * @param key the environment variable key
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/s3/Handler.java

                if (connected) {
                    return;
                }
                final String endpoint = System.getenv().get("S3_ENDPOINT");
                final String accessKey = System.getenv().get("S3_ACCESS_KEY");
                final String secretKey = System.getenv().get("S3_SECRET_KEY");
                final String region = System.getenv().getOrDefault("S3_REGION", "us-east-1");
    
                // Validate endpoint before attempting connection
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2.java

        static final int SMB_FILE_NAMES_INFO = 0x103;
        static final int SMB_FILE_BOTH_DIRECTORY_INFO = 0x104;
    
        static final int LIST_SIZE = Config.getInt("jcifs.smb1.smb.client.listSize", DEFAULT_LIST_SIZE);
        static final int LIST_COUNT = Config.getInt("jcifs.smb1.smb.client.listCount", DEFAULT_LIST_COUNT);
    
        Trans2FindFirst2(final String filename, final String wildcard, final int searchAttributes) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/gcs/Handler.java

                if (connected) {
                    return;
                }
                final String projectId = System.getenv("GCS_PROJECT_ID");
                final String endpoint = System.getenv("GCS_ENDPOINT");
                final String credentialsFile = System.getenv("GCS_CREDENTIALS_FILE");
    
                // Validate projectId before attempting connection
                if (StringUtil.isBlank(projectId)) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

            FieldUtil.set(field, this, Integer.valueOf(testData));
            assertThat(FieldUtil.getInt(field, this), is(testData));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetIntFieldObject() throws Exception {
            final Field field = getClass().getField("INT_DATA");
            assertThat(FieldUtil.getInt(field), is(INT_DATA));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  10. container-tests/build.gradle.kts

    val platform = System.getProperty("okhttp.platform", "jdk9")
    val testJavaVersion = System.getProperty("test.java.version", "21").toInt()
    
    tasks.withType<Test> {
      useJUnitPlatform()
      onlyIf("By default not in CI") {
        System.getenv("CI") == null
          || (project.hasProperty("containerTests") && project.property("containerTests").toString().toBoolean())
      }
    
      jvmArgs(
        "-Dokhttp.platform=$platform",
      )
    
      if (platform == "loom") {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Mar 17 14:46:34 UTC 2024
    - 1.1K bytes
    - Viewed (1)
Back to top