Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 770 for Try (0.01 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      public void testContainsKey() {
        Map<K, V> map;
        K unmappedKey;
        try {
          map = makePopulatedMap();
          unmappedKey = getKeyNotInPopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        assertFalse(map.containsKey(unmappedKey));
        try {
          assertFalse(map.containsKey(new IncompatibleKeyType()));
        } catch (ClassCastException tolerated) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                try {
                    circuitBreaker.executeWithCircuitBreaker(() -> {
                        throw new RuntimeException("Test failure");
                    });
                } catch (CIFSException e) {
                    // Expected
                }
            }
    
            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Try to execute - should be blocked with CIFSException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeConnection.java

            try (SmbSessionImpl session = getSession()) {
                if (session == null) {
                    return;
                }
                try (SmbTransportImpl transport = session.getTransport()) {
                    synchronized (transport) {
                        final SmbTreeImpl t = getTreeInternal();
                        if (t != null) {
                            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

            tempFile = File.createTempFile("test", ".tmp", Curl.tmpDir);
    
            // Write test content to file
            try (FileOutputStream fos = new FileOutputStream(tempFile)) {
                fos.write(testContent.getBytes("UTF-8"));
            }
    
            ContentCache cache = new ContentCache(tempFile);
    
            try (InputStream stream = cache.getInputStream()) {
                assertNotNull(stream);
                byte[] buffer = new byte[1024];
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/config/PropertyConfiguration.java

            if (value != null) {
                try {
                    this.smbConnectionTimeout = Integer.parseInt(value);
                } catch (NumberFormatException e) {
                    // Invalid value ignored
                }
            }
    
            value = props.getProperty("jcifs.smb.client.soTimeout");
            if (value != null) {
                try {
                    this.smbSocketTimeout = Integer.parseInt(value);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            try {
                handshake();
            } catch (final IOException ex) {}
            return connection.getDate();
        }
    
        @Override
        public long getLastModified() {
            try {
                handshake();
            } catch (final IOException ex) {}
            return connection.getLastModified();
        }
    
        @Override
        public String getHeaderField(final String header) {
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

            try {
                ThreadDumpUtil.printThreadDump();
            } catch (Exception e) {
                fail("printThreadDump() should not throw exceptions: " + e.getMessage());
            }
        }
    
        public void test_printThreadDumpAsWarn() {
            // This test verifies that printThreadDumpAsWarn() method exists and can be called without exceptions
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/SuggestHelperTest.java

        }
    
        public void test_init() {
            SuggestHelper helper = new SuggestHelper();
            try {
                helper.init();
                assertNotNull(helper.suggester());
            } catch (Exception e) {
                assertTrue(true);
            }
        }
    
        public void test_suggester() {
            try {
                assertNull(suggestHelper.suggester());
            } catch (Exception e) {
                assertTrue(true);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 16K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

        private void loadPersistedHandles() {
            if (!Files.exists(stateDirectory)) {
                return;
            }
    
            try (DirectoryStream<Path> stream = Files.newDirectoryStream(stateDirectory, "*.handle")) {
                for (Path handleFile : stream) {
                    try (ObjectInputStream ois = new ObjectInputStream(Files.newInputStream(handleFile))) {
                        HandleInfo info = (HandleInfo) ois.readObject();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/HMACT64Test.java

            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
                mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5);
            }
        }
    
        @Test
        void testConstructorWithNormalKey() throws NoSuchAlgorithmException {
            // Test constructor with a normal length key
            try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
Back to top