Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for clearProperty (0.1 sec)

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

      }
    
      @Override
      protected void tearDown() throws Exception {
        classReloader.close();
        Thread.currentThread().setContextClassLoader(oldClassLoader);
        System.clearProperty("guava.concurrent.generate_cancellation_cause");
      }
    
      public void testCancel_notDoneNoInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(false));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

      }
    
      @Override
      protected void tearDown() throws Exception {
        classReloader.close();
        Thread.currentThread().setContextClassLoader(oldClassLoader);
        System.clearProperty("guava.concurrent.generate_cancellation_cause");
      }
    
      public void testCancel_notDoneNoInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(false));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/StandardSystemProperty.java

       *   <li>{@link #JAVA_COMPILER}, while still listed as required as of Java 15, is typically not
       *       available even under older version.
       *   <li>Any property may be cleared through APIs like {@link System#clearProperty}.
       *   <li>Unusual environments like GWT may have their own special handling of system properties.
       * </ul>
       *
       * <p>Note that {@code StandardSystemProperty} does not provide constants for more recently added
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 06 10:03:30 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

        }
    
        @AfterEach
        public void tearDown() throws IOException {
            if (manager != null) {
                manager.shutdown();
            }
    
            // Clean up system property
            System.clearProperty("jcifs.smb.client.handleStateDirectory");
    
            // Clean up temp directory
            if (tempDir != null && Files.exists(tempDir)) {
                Files.walk(tempDir)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/http/HandlerTest.java

            // This test verifies that when the system property is null, the handler
            // falls back to using default handlers without throwing NullPointerException.
            System.clearProperty("java.protocol.handler.pkgs");
            setupMockProtocolHandlers();
            URL url = new URL("http://example.com/resource");
    
            URLConnection connection = handler.openConnection(url);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            // Restore original property
            if (originalLmCompatibility != null) {
                jcifs.smb1.Config.setProperty("jcifs.smb1.smb.lmCompatibility", originalLmCompatibility);
            } else {
                System.clearProperty("jcifs.smb1.smb.lmCompatibility");
            }
        }
    
        // Test constructor with domain, username, and password
        @Test
        void testConstructorWithDomainUsernamePassword() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/JvmUtilTest.java

            assertEquals("-X777", values[4]);
            assertEquals("-X999", values[5]);
        }
    
        public void test_getJavaVersion_edgeCases() {
            // Test with null java.version property
            System.clearProperty("java.version");
            assertEquals(8, JvmUtil.getJavaVersion());
    
            // Test with empty string
            System.setProperty("java.version", "");
            try {
                JvmUtil.getJavaVersion();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

            } finally {
                if (originalValue != null) {
                    System.setProperty(FesenClient.HTTP_ADDRESS, originalValue);
                } else {
                    System.clearProperty(FesenClient.HTTP_ADDRESS);
                }
            }
        }
    
        // Test destroy container
        public void test_destroyContainer() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

      }
    
      @AfterEach
      fun tearDown() {
        java.net.Authenticator.setDefault(null)
        System.clearProperty("proxyHost")
        System.clearProperty("proxyPort")
        System.clearProperty("http.proxyHost")
        System.clearProperty("http.proxyPort")
        System.clearProperty("https.proxyHost")
        System.clearProperty("https.proxyPort")
        if (cache != null) {
          cache!!.delete()
        }
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            try {
                System.setProperty("fess.log.path", "logpath");
                assertEquals("logpath", systemHelper.getLogFilePath());
            } finally {
                System.clearProperty("fess.log.path");
            }
        }
    
        public void test_getForumLink() {
            getMockRequest().setLocale(Locale.ENGLISH);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
Back to top