Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for setdefault (0.06 sec)

  1. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserTimeZoneProcessProviderTest.java

            assertEquals(TimeZone.getDefault(), result);
        }
    
        // Test getRequestedTimeZone() with different default time zone
        public void test_getRequestedTimeZone_withDifferentDefaultTimeZone() {
            // Store original time zone
            TimeZone originalTimeZone = TimeZone.getDefault();
    
            try {
                // Change default time zone temporarily
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

            // Store original timezone settings
            originalTimeZone = TimeZone.getDefault();
            originalProvider = getDBFluteSystemTimeZoneProvider();
        }
    
        @Override
        public void tearDown() throws Exception {
            // Restore original timezone settings
            TimeZone.setDefault(originalTimeZone);
            if (originalProvider != null) {
                DBFluteSystem.unlock();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            TimeZone original = TimeZone.getDefault();
            try {
                TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
                ServerMessageBlock.writeUTime(unixTime * 1000L, buffer, 0);
                long readTime = ServerMessageBlock.readUTime(buffer, 0);
                assertEquals(unixTime * 1000L, readTime);
            } finally {
                TimeZone.setDefault(original);
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmAuthenticator.java

         */
    
        public synchronized static void setDefault(final NtlmAuthenticator a) {
            if (auth != null) {
                return;
            }
            auth = a;
        }
    
        /**
         * Gets the default NTLM authenticator.
         * @return the default authentication credentials provider
         */
        public static NtlmAuthenticator getDefault() {
            return auth;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/NtlmAuthenticator.java

         * @param a the authenticator to set as default
         */
    
        public synchronized static void setDefault(final NtlmAuthenticator a) {
            if (auth != null) {
                return;
            }
            auth = a;
        }
    
        /**
         * Gets the URL that is requesting authentication.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            }
          }
        }
      }
    
      public void testNulls() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(SleepingStopwatch.class, stopwatch)
                .setDefault(int.class, 1)
                .setDefault(double.class, 1.0d);
        tester.testStaticMethods(RateLimiter.class, Visibility.PACKAGE);
        tester.testInstanceMethods(RateLimiter.create(5.0, stopwatch), Visibility.PACKAGE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            }
          }
        }
      }
    
      public void testNulls() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(SleepingStopwatch.class, stopwatch)
                .setDefault(int.class, 1)
                .setDefault(double.class, 1.0d);
        tester.testStaticMethods(RateLimiter.class, Visibility.PACKAGE);
        tester.testInstanceMethods(RateLimiter.create(5.0, stopwatch), Visibility.PACKAGE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.setDefault(int.class, 1);
        tester.setDefault(long.class, 1L);
        tester.testAllPublicStaticMethods(LongMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeSmall() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/IntMathTest.java

        return big.bitLength() <= 31;
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.setDefault(int.class, 1);
        tester.testAllPublicStaticMethods(IntMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrime() {
        // Defer correctness tests to Long.isPrime
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        assertNull(tester.instantiate(MyAnnotation.class));
      }
    
      public void testInstantiate_setDefault() throws Exception {
        NotInstantiable x = new NotInstantiable();
        tester.setDefault(NotInstantiable.class, x);
        assertNotNull(tester.instantiate(ConstructorParameterNotInstantiable.class));
      }
    
      public void testSetDistinctValues_equalInstances() {
        assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top