Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Accepted (0.04 sec)

  1. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

        }
    
        @Test
        @DisplayName("Iterator with rejecting filter - finds next acceptable")
        void iteratorWithRejectingFilter() throws Exception {
            // Setup: first entry rejected, second accepted
            FileEntry entry1 = mock(FileEntry.class);
            FileEntry entry2 = mock(FileEntry.class);
    
            when(delegate.hasNext()).thenReturn(true, true, false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

            // Assert
            assertNotNull(e1);
            assertNotNull(e2);
            assertEquals("first", e1.getName());
            assertEquals(acceptedName, e2.getName(), "Should return the first name accepted by filter");
    
            // Verify filter interactions: not called for '.' and '..', called for others
            verify(nameFilter, never()).accept(parent, ".");
            verify(nameFilter, never()).accept(parent, "..");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlRequestTest.java

            // Threshold of 0 should be accepted
            request.threshold(0);
    
            assertEquals(0, request.threshold());
        }
    
        @Test
        public void testThresholdWithNegative() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
    
            // Negative threshold should be accepted (though may not make sense)
            request.threshold(-1);
    
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            new SecureRandom().nextBytes(standardFileId);
            new SecureRandom().nextBytes(longFileId);
    
            RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId);
    
            // All sizes should be accepted without exception
            assertDoesNotThrow(() -> request.setFileId(shortFileId), "Should handle 8-byte file ID");
            assertDoesNotThrow(() -> request.setFileId(standardFileId), "Should handle 16-byte file ID");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            // This test documents the actual behavior - any tag number is accepted
            byte[] token =
                    buildInitToken(new ASN1ObjectIdentifier[] { OID_KRB }, NegTokenInit.INTEGRITY, new byte[] { 0x42 }, null, false, null, 1, // Non-zero tag number is currently accepted
                            null);
    
            // The implementation accepts any tag number without validation
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java

        boolean getVerbose();
    
        @Nonnull
        PathScope getPathScope();
    
        /**
         * Returns a filter for the types of path (class-path, module-path, …) accepted by the tool.
         * For example, if a Java tools accepts only class-path elements, then the filter should return
         * {@code true} for {@link JavaPathType#CLASSES} and {@code false} for {@link JavaPathType#MODULES}.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:30:49 UTC 2025
    - 23K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

                    context.terminal
                            .writer()
                            .println(messageBuilderFactory
                                    .builder()
                                    .warning("Values not accepted; not saving configuration.")
                                    .build());
                    return CANCELED;
                }
            }
    
            return OK;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            // Null treeConnection throws NPE when acquire() is called
            assertThrows(NullPointerException.class, () -> new SmbTreeHandleImpl(resourceLoc, null));
        }
    
        @Test
        @DisplayName("Null resourceLoc is accepted but may cause issues later")
        void constructorNullResourceLoc() {
            // Null resourceLoc doesn't throw NPE immediately - it's stored and may cause issues when used
            // This test documents the current behavior
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

          }
        }
      }
    
      @Throws(IOException::class)
      fun flush() {
        writer.flush()
      }
    
      /**
       * Degrades this connection such that new streams can neither be created locally, nor accepted
       * from the remote peer. Existing streams are not impacted. This is intended to permit an endpoint
       * to gracefully stop accepting new requests without harming previously established streams.
       */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/SmbCircuitBreaker.java

         */
        private double calculateAvailability() {
            long total = totalRequests.get();
            if (total == 0) {
                return 100.0;
            }
            long accepted = total - totalCircuitOpenRejections.get();
            return (accepted * 100.0) / total;
        }
    
        /**
         * Circuit breaker metrics snapshot (Java 17 Record)
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
Back to top