Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 1,808 for try (0.01 sec)

  1. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        }
    
        public void test_getHostnamet() {
            assertNotNull(systemHelper.getHostname());
            try {
                envMap.put("COMPUTERNAME", "xxx");
                assertEquals("xxx", systemHelper.getHostname());
            } finally {
                envMap.remove("COMPUTERNAME");
            }
            try {
                envMap.put("HOSTNAME", "yyy");
                assertEquals("yyy", systemHelper.getHostname());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureKeyManager.java

         */
        public SecretKey getSessionKey(String sessionId) {
            checkNotClosed();
    
            SecretKey key = sessionKeys.get(sessionId);
    
            // Try to load from KeyStore if not in memory
            if (key == null && keyStore != null) {
                try {
                    KeyStore.ProtectionParameter protection = new KeyStore.PasswordProtection(keyStorePassword);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

      static void verifyGetOnPendingFuture(Future<?> future) {
        try {
          future.get();
          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
          assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future.");
        }
      }
    
      static void verifyTimedGetOnPendingFuture(Future<?> future) {
        try {
          future.get(0, SECONDS);
          fail();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. docs/smb3-features/03-multi-channel-design.md

            
            return score;
        }
        
        private boolean checkRSSCapability() {
            // Platform-specific RSS detection
            // Simplified implementation
            try {
                NetworkInterface ni = NetworkInterface.getByInetAddress(address);
                return ni != null && ni.supportsMulticast();
            } catch (Exception e) {
                return false;
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        equivalenceMock.expectDistinct(group1Item2, group1Item1);
    
        equivalenceMock.expectHash(group1Item1, 1);
        equivalenceMock.expectHash(group1Item2, 1);
    
        equivalenceMock.replay();
    
        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          assertThat(expected)
              .hasMessageThat()
              .contains(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/HostSpecifier.java

        String host = parsedHost.getHost();
    
        // Try to interpret the specifier as an IP address. Note we build
        // the address rather than using the .is* methods because we want to
        // use InetAddresses.toUriString to convert the result to a string in
        // canonical form.
        InetAddress addr = null;
        try {
          addr = InetAddresses.forString(host);
        } catch (IllegalArgumentException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        equivalenceMock.expectDistinct(group1Item2, group1Item1);
    
        equivalenceMock.expectHash(group1Item1, 1);
        equivalenceMock.expectHash(group1Item2, 1);
    
        equivalenceMock.replay();
    
        try {
          tester.addEquivalenceGroup(group1Item1, group1Item2).test();
        } catch (AssertionFailedError expected) {
          assertThat(expected)
              .hasMessageThat()
              .contains(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

            // Write test content to file
            try (FileOutputStream fos = new FileOutputStream(testFile)) {
                fos.write(getTestContent().getBytes(StandardCharsets.UTF_8));
            }
    
            // Create a temporary project.properties file for SystemHelper
            File propFile = File.createTempFile("project", ".properties");
            propFile.deleteOnExit();
            try (FileOutputStream fos = new FileOutputStream(propFile)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/AbstractCrawlerClientTest.java

            client.checkMaxContentLength(responseData);
    
            responseData.setContentLength(1000001L);
            try {
                client.checkMaxContentLength(responseData);
                fail();
            } catch (MaxLengthExceededException e) {
                // ok
            }
    
            responseData.setContentLength(1000000000L);
            try {
                client.checkMaxContentLength(responseData);
                fail();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        } finally {
          Security.removeProvider("Conscrypt")
          client.close()
        }
      }
    
      @Test
      fun testRequestUsesPlayProvider() {
        assumeNetwork()
    
        try {
          try {
            ProviderInstaller.installIfNeeded(InstrumentationRegistry.getInstrumentation().targetContext)
          } catch (gpsnae: GooglePlayServicesNotAvailableException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
Back to top