- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 26 for testWriteSetupWireFormat (0.27 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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; // ActCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
} /** * Test for the writeSetupWireFormat method. * It should always return 0. */ @Test void testWriteSetupWireFormat() { byte[] dst = new byte[10]; // The method should not write anything and return 0 assertEquals(0, response.writeSetupWireFormat(dst, 0), "writeSetupWireFormat should return 0."); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.8K bytes - Click Count (0) -
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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java
assertNotNull(transPeekNamedPipe); // FID is written in writeSetupWireFormat, verify it there } @Test @DisplayName("writeSetupWireFormat should write correct bytes") void testWriteSetupWireFormat() { // Arrange transPeekNamedPipe = new TransPeekNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_FID); byte[] buffer = new byte[10]; int offset = 2; // Act
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
assertEquals((byte) 0x00, trans.maxSetupCount, "The maxSetupCount should be 0."); } /** * Tests the writeSetupWireFormat method. */ @Test void testWriteSetupWireFormat() { // Given Trans2QueryPathInformation trans = new Trans2QueryPathInformation("test.txt", 0x0101); byte[] dst = new byte[2]; // When
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
assertEquals(level, informationLevelField.getInt(cmd), "informationLevel should be persisted"); } @Test @DisplayName("writeSetupWireFormat writes the subCommand and a trailing 0") void testWriteSetupWireFormat() { Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(5); byte[] buf = newBuffer(10); int written = cmd.writeSetupWireFormat(buf, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
// Then assertTrue(result); } @Test @DisplayName("writeSetupWireFormat should write setup bytes correctly") void testWriteSetupWireFormat() { // Given trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test"); byte[] dst = new byte[10]; int dstIndex = 0; // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11K bytes - Click Count (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); // AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
int writtenAttributes = SMBUtil.readInt2(buffer, 0); assertEquals(expectedAttributes, writtenAttributes); } @Test @DisplayName("Test writeSetupWireFormat") void testWriteSetupWireFormat() { trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", 0x16, 10, 1024); byte[] buffer = new byte[10]; int written = trans2FindFirst2.writeSetupWireFormat(buffer, 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (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:
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0)