Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,654 for Try (0.07 sec)

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

            try {
                labelTypeHelper.refresh(labelTypeList);
                // Method is protected, so we test it indirectly through refresh
            } catch (Exception e) {
                fail("buildLabelTypePatternList() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_labelTypePattern_constructor() {
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbWatchHandleTest.java

        /**
         * Test AutoCloseable behavior with try-with-resources
         */
        @Test
        void testAutoCloseable() throws CIFSException {
            // Create a mock that tracks close calls
            SmbWatchHandle autoCloseableHandle = mock(SmbWatchHandle.class);
            when(autoCloseableHandle.watch()).thenReturn(mockNotifications);
    
            // Use try-with-resources
            try (SmbWatchHandle handle = autoCloseableHandle) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            for (int i = 0; i < 3; i++) {
                rateLimiter.checkAttempt(username, ip);
                rateLimiter.recordFailure(username, ip);
            }
    
            // Try after lockout (will be blocked)
            try {
                rateLimiter.checkAttempt(username, ip);
            } catch (SmbException e) {
                // Expected
            }
    
            // Block an IP
            String ip2 = "192.168.1.11";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. docs/smb3-features/04-directory-leasing-design.md

            lock.writeLock().lock();
            try {
                if (children.remove(childName) != null) {
                    hasChanges = true;
                    lastUpdateTime = System.currentTimeMillis();
                }
            } finally {
                lock.writeLock().unlock();
            }
        }
        
        public List<FileInfo> getChildren() {
            lock.readLock().lock();
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                        if (isQualifiedForInterpolation(field, type)) {
                            boolean isAccessible = field.isAccessible();
                            field.setAccessible(true);
                            try {
                                try {
                                    if (String.class == type) {
                                        String value = (String) field.get(target);
                                        if (value != null) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 14K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java

            assertEquals("<% a", AdminDesignAction.decodeJsp("<% a"));
            assertEquals("<%= a", AdminDesignAction.decodeJsp("<%= a"));
            assertEquals("<% try{ %>", AdminDesignAction.decodeJsp("<!--TRY-->"));
            assertEquals("<% }catch(Exception e){session.invalidate();} %>",
                    AdminDesignAction.decodeJsp("<!--CACHE_AND_SESSION_INVALIDATE-->"));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceEntryTester.java

        try {
          getMap().replace(k0(), v3(), v4());
        } catch (UnsupportedOperationException tolerated) {
          // the operation would be a no-op, so exceptions are allowed but not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceEntry_unsupportedAbsentKey() {
        try {
          getMap().replace(k3(), v3(), v4());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                }
            }
    
            final SmbTreeConnection treeConn = SmbTreeConnection.create(tc);
            try (SmbTreeHandleImpl th = treeConn.connectHost(locator, locator.getServerWithDfs());
                    SmbSessionImpl session = th.getSession();
                    SmbTransportImpl transport = session.getTransport()) {
                try {
                    entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/Config.java

         */
        public static String DEFAULT_OEM_ENCODING = "Cp850";
    
        static {
            String filename;
            int level;
            FileInputStream in = null;
    
            log = LogStream.getInstance();
    
            try {
                filename = System.getProperty("jcifs_smb1.properties");
                if (filename != null && filename.length() > 1) {
                    in = new FileInputStream(filename);
                }
                Config.load(in);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

      private void assertSetCountIncreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
          fail("a call to multiset.setCount() to increase an element's count should throw");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      private void assertSetCountDecreasingFailure(E element, int count) {
        try {
          setCountNoCheckReturnValue(element, count);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top