Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 954 for rejects (0.09 seconds)

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

            assertTrue(result, "Filter should accept any provided name");
            verifyNoInteractions(mockDir);
        }
    
        /**
         * Happy-path: a filter that rejects any name.
         */
        @ParameterizedTest
        @DisplayName("rejects every provided name")
        @ValueSource(strings = { "file.txt", "data.DAT", "a", "", "   " })
        void rejectsAnyNameReturnsFalse(String input) throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbTransportImplTest.java

            @Test
            @DisplayName("createEncryptionContext rejects when SMB2/3 not negotiated")
            void createEncryptionContext_rejects_noNegotiation() {
                assertThrows(SmbUnsupportedOperationException.class, () -> transport.createEncryptionContext(new byte[] { 1 }, null));
            }
    
            @Test
            @DisplayName("createEncryptionContext rejects pre-SMB3 dialect")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  3. architecture/build-execution-model.md

    3. If the daemon is not able to run the request, for example it is already running a request or is shutting down, it rejects the request. The client starts again.
    4. The daemon runs the request, sending back data such as logging output or tooling API events and intermediate models while doing so.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Jun 12 09:50:57 GMT 2025
    - 907 bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

            verify(treeHandle, times(1)).release();
        }
    
        @Test
        @DisplayName("Iterator should handle filter that rejects all entries")
        void testIterator_FilterRejectsAll() throws Exception {
            // Given: A filter that rejects everything
            when(locator.getType()).thenReturn(SmbConstants.TYPE_WORKGROUP);
            when(locator.getURL()).thenReturn(createSmbURL("smb://"));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbFileFilterTest.java

            // negative size -> reject
            when(smbFile.length()).thenReturn(-1L);
            assertFalse(filter.accept(smbFile), "Negative size should be rejected");
            verify(smbFile, times(1)).length();
    
            // zero size -> reject
            reset(smbFile);
            when(smbFile.length()).thenReturn(0L);
            assertFalse(filter.accept(smbFile), "Zero size should be rejected");
            verify(smbFile, times(1)).length();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/NetServerFileEntryAdapterIteratorTest.java

            assertFalse(itr.hasNext());
        }
    
        @Test
        @DisplayName("Filter rejects first, accepts second; interactions verified")
        void filterRejectsThenAccepts_nextYieldsAccepted() throws Exception {
            // Arrange: two entries; filter rejects first, accepts second
            setupParentForUrlCreation();
            StubFileEntry skip = new StubFileEntry("SKIPME", SmbConstants.TYPE_SERVER);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java

            assertNull(request.getUserPrincipal());
            assertEquals("NTLM", request.getAuthType());
        }
    
        @Test
        @DisplayName("constructor rejects null HttpServletRequest")
        void testConstructorWithNullHttpRequest(@Mock Principal mockPrincipal) {
            // HttpServletRequestWrapper throws IllegalArgumentException for null request
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbNamedPipeTest.java

                assertEquals(SmbPipeResource.PIPE_TYPE_RDWR, pipe.getPipeType(), "Pipe type should match constructor");
            }
    
            @ParameterizedTest
            @DisplayName("Rejects non-IPC$ URLs")
            @ValueSource(strings = { "smb://server/C$/foo", "smb://server/public/foo", "smb://server/share/path" })
            void rejectsNonIpcShare(String url) {
                // Arrange & Act & Assert
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        return Sets.newHashSetWithExpectedSize(expectedSize);
      }
    
      static <E extends @Nullable Object> Set<E> newConcurrentHashSet() {
        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 23 17:16:53 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  10. src/test/java/jcifs/spnego/NegTokenInitTest.java

            assertFalse(init.getContextFlag(NegTokenInit.CONFIDENTIALITY));
            assertEquals(NegTokenInit.INTEGRITY, init.getContextFlags());
        }
    
        @Test
        @DisplayName("Parse rejects wrong SPNEGO OID")
        void testParseRejectsWrongOid() throws Exception {
            byte[] token = buildInitToken(new ASN1ObjectIdentifier[] { OID_KRB }, 0, null, null, false, "1.2.840.113554.1.2.2", // Kerberos OID instead of SPNEGO OID
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21K bytes
    - Click Count (0)
Back to Top