Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for resp (0.02 sec)

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

                Trans2FindFirst2Response resp = inv.getArgument(1);
                // First response content
                FE[] res = java.util.Arrays.stream(batches.get(0)).map(FE::new).toArray(FE[]::new);
                setField(resp, jcifs.internal.smb1.trans.SmbComTransactionResponse.class, "results", res);
                setField(resp, Trans2FindFirst2Response.class, "sid", 42);
                setField(resp, Trans2FindFirst2Response.class, "resumeKey", 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java

            // Arrange
            TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse();
            // Act & Assert - no exceptions should be thrown
            assertDoesNotThrow(() -> resp.writeSetupWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.writeParametersWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.writeDataWireFormat(null, 0));
            assertDoesNotThrow(() -> resp.readSetupWireFormat(null, 0, 0));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                Trans2QueryPathInformationResponse resp =
                        new Trans2QueryPathInformationResponse(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_STANDARD_INFO);
    
                // Create a buffer with sample data
                byte[] buffer = new byte[100];
    
                int result = resp.readDataWireFormat(buffer, 0, 24);
                assertNotNull(resp.info);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            List<FileNotifyInformation> info = new ArrayList<>();
            NotifyResponse resp = mock(NotifyResponse.class);
            when(resp.isReceived()).thenReturn(true);
            when(resp.getErrorCode()).thenReturn(0);
            when(resp.getNotifyInformation()).thenReturn(info);
            setupSmb2(resp, new byte[16]);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0x1234, true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            final Trans2GetDfsReferralResponse resp = new Trans2GetDfsReferralResponse();
            ipc.send(new Trans2GetDfsReferral(path), resp);
    
            if (resp.numReferrals == 0) {
                return null;
            }
            if (rn == 0 || resp.numReferrals < rn) {
                rn = resp.numReferrals;
            }
    
            DfsReferral dr = new DfsReferral();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/NtlmSsp.java

                }
            } else {
                resp.setHeader("WWW-Authenticate", "NTLM");
            }
            resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
            resp.setContentLength(0);
            resp.flushBuffer();
            return null;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

        void constructor_happyPath() {
            // Arrange
            Configuration cfg = Mockito.mock(Configuration.class);
    
            // Act
            Smb2LogoffResponse resp = new Smb2LogoffResponse(cfg);
    
            // Assert
            assertNotNull(resp, "Response instance should be created");
        }
    
        @Nested
        @DisplayName("writeBytesWireFormat")
        class WriteBytesWireFormat {
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            Smb2IoctlResponse resp = new Smb2IoctlResponse(config);
    
            resp.decode(packet, 0);
            assertEquals(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, resp.getCtlCode());
            assertEquals(0x1234, resp.getIoctlFlags());
            assertNotNull(resp.getFileId());
            assertEquals(16, resp.getFileId().length);
            assertEquals(12, resp.getOutputLength());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            byte command = (byte) 0x25;
            byte subcommand = (byte) 0x01;
            TestSmbComTransactionResponse resp = new TestSmbComTransactionResponse(mockConfig, command, subcommand);
            assertNotNull(resp);
            assertEquals(command, resp.getCommand());
            assertEquals(subcommand, resp.getSubCommand());
        }
    
        @Test
        @DisplayName("Test dataCount getter and setter")
        void testDataCountGetterSetter() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

        private SmbComWriteResponse resp;
        private Configuration cfgMock;
    
        @BeforeEach
        public void setUp() {
            // create a mock configuration that satisfies constructor requirements.
            cfgMock = mock(Configuration.class);
            resp = new SmbComWriteResponse(cfgMock);
        }
    
        @Test
        public void testInitialCountIsZero() {
            assertEquals(0, resp.getCount(), "Initial count should be zero");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top