- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for testWriteSetupWireFormat (0.39 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
assertNotNull(transCallNamedPipe); assertEquals(TEST_PIPE_NAME, transCallNamedPipe.name); } @Test @DisplayName("Test writeSetupWireFormat writes correct bytes") void testWriteSetupWireFormat() { // Given transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, 0, TEST_DATA.length); byte[] dst = new byte[10]; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java
assertEquals(0, pipe.maxSetupCount); // Setup count should be 2 (as per actual implementation) assertEquals(2, pipe.setupCount); } @Test public void testWriteSetupWireFormat() { // Test the writeSetupWireFormat method TransWaitNamedPipe pipe = new TransWaitNamedPipe("\\\\pipe\\testPipe"); byte[] dst = new byte[10]; // writeSetupWireFormat writes 4 bytes:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
assertEquals(4, querySecurityDesc.getPadding()); } @Test @DisplayName("Test writeSetupWireFormat returns zero") void testWriteSetupWireFormat() { querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0x1234, OWNER_SECURITY_INFORMATION); byte[] dst = new byte[100]; int result = querySecurityDesc.writeSetupWireFormat(dst, 10);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
TransCallNamedPipeResponse testResponse = new TransCallNamedPipeResponse(mockConfig, testData); assertNotNull(testResponse); } @Test void testWriteSetupWireFormat() { byte[] dst = new byte[100]; int result = response.writeSetupWireFormat(dst, 0); assertEquals(0, result); } @Test void testWriteParametersWireFormat() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
// Assert assertNotNull(transWaitNamedPipe); assertEquals("", transWaitNamedPipe.name); } @Test @DisplayName("writeSetupWireFormat should write correct bytes") void testWriteSetupWireFormat() { // Arrange transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName); byte[] dst = new byte[10]; int dstIndex = 0; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
// Verify parent class is properly initialized assertTrue(response instanceof SmbComTransactionResponse); } @Test @DisplayName("writeSetupWireFormat should return 0") void testWriteSetupWireFormat() { // Arrange byte[] dst = new byte[100]; int dstIndex = 0; // Act int result = response.writeSetupWireFormat(dst, dstIndex); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
assertEquals(2, trans.setupCount); assertEquals("\\PIPE\\", trans.name); } @Test @DisplayName("Test writeSetupWireFormat writes correct data") void testWriteSetupWireFormat() { // Arrange TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH); byte[] dst = new byte[10]; int dstIndex = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertEquals((byte) 0x01, buf[5]); } /** * Ensures writeSetupWireFormat writes subcommand and trailing zero, returning 2. */ @Test void testWriteSetupWireFormat() { // Given Trans2FindNext2 next = new Trans2FindNext2(0x1111, 0, "*"); byte[] dst = new byte[2]; // When int written = next.writeSetupWireFormat(dst, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
FileSystemInformation result = response.getInfo(FileSystemInformation.class); assertNotNull(result); assertSame(allocation, result); } @Test void testWriteSetupWireFormat() { // Test writeSetupWireFormat returns 0 response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION); byte[] buffer = new byte[10];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, mockResponse.getSubCommand()); } @Test @DisplayName("Test writeSetupWireFormat returns 0") void testWriteSetupWireFormat() { // Test that writeSetupWireFormat always returns 0 byte[] buffer = new byte[100]; int result = response.writeSetupWireFormat(buffer, 0); assertEquals(0, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0)