- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 794 for wire (0.02 seconds)
-
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, transWaitNamedPipe.getSubCommand()); } @Test @DisplayName("Multiple wire format operations should be consistent") void testMultipleWireFormatOperations() { // Arrange transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName); byte[] dst1 = new byte[10];
Created: 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/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java
assertEquals(0x2222, SMBUtil.readInt2(dst2, 0)); assertEquals(0x3333, SMBUtil.readInt2(dst3, 0)); } @Test @DisplayName("Test parameter wire format structure") void testParameterWireFormatStructure() { querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0xABCD, 0x12345678); byte[] dst = new byte[100];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java
when(fe3.getFileIndex()).thenReturn(3); // Track query count to handle multiple queries properly final int[] queryCount = { 0 }; // Mock send(create) to wire a query response with fe1, fe2 doAnswer(inv -> { Object arg = inv.getArgument(0); if (arg instanceof Smb2CreateRequest) { Smb2CreateRequest create = (Smb2CreateRequest) arg;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.7K bytes - Click Count (0) -
cmd/storage-rest_test.go
{"foo", "myobject", testData, false, false}, {"foo", "myobject-0byte", []byte{}, false, false}, // volume not found error. {"foo-bar", "myobject", testData, true, false}, // Test some weird characters over the wire. {"foo", "newline\n", testData, false, true}, {"foo", "newline\t", testData, false, true}, {"foo", "newline \n", testData, false, true}, {"foo", "newline$$$\n", testData, false, true},Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
} @Test void testCompleteWireFormatRoundTrip() { trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL); // Test complete wire format writing byte[] setupBuffer = new byte[256]; byte[] paramBuffer = new byte[512]; byte[] dataBuffer = new byte[256];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/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java
* aka TRUNCATE_EXISTING */ static final int FILE_OVERWRITE = 0x4; /* * Open the file and overwrite it's contents or create it if it does not exist * aka CREATE_ALWAYS (according to the wire when calling CreateFile) */ static final int FILE_OVERWRITE_IF = 0x5; // create options static final int FILE_WRITE_THROUGH = 0x00000002; static final int FILE_SEQUENTIAL_ONLY = 0x00000004;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
int result = (int) method.invoke(cancel, buffer, bufferIndex); // Then assertEquals(0, result); } } @Nested @DisplayName("Wire Format Tests") class WireFormatTests { private SmbComNtCancel cancel; private Configuration mockConfig; @BeforeEach void setUp() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
assertEquals(expectedTime, response.getLastAccessTime()); } @Test void testReadParameterWordsWireFormatWithData() { // Test reading parameter words from wire format response = new SmbComQueryInformationResponse(mockConfig, 0L); // Prepare test data byte[] buffer = new byte[256]; int bufferIndex = 0; // Set wordCount to non-zero
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
IOException exception = assertThrows(IOException.class, () -> { packet.readTrailerWireFormat(bais, readBuffer, 0); }); assertEquals("invalid session request wire format", exception.getMessage()); } @ParameterizedTest @MethodSource("provideNamesForWriteTest") @DisplayName("writeTrailerWireFormat should handle various name combinations")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// Then - nothing should happen (empty implementation) verifyNoInteractions(resp); } @Test @DisplayName("Should read valid negotiate response from wire format") void testReadBytesWireFormatValid() throws Exception { // Given byte[] buffer = createValidNegotiateResponseBuffer(); // WhenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (0)