- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for expectedData (0.14 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
assertEquals(testData.length, result); // Verify data was copied to outputBuffer byte[] expectedData = new byte[testData.length]; System.arraycopy(outputBuffer, 0, expectedData, 0, testData.length); assertArrayEquals(testData, expectedData); } @Test void testReadDataWireFormatExceedsBuffer() { // Test when data length exceeds outputBuffer size
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
// Then assertEquals(dataLength, bytesWritten); byte[] expectedData = Arrays.copyOfRange(TEST_DATA, dataOffset, dataOffset + dataLength); byte[] writtenData = Arrays.copyOfRange(dst, dstIndex, dstIndex + dataLength); assertArrayEquals(expectedData, writtenData); } @Test @DisplayName("Test writeDataWireFormat with insufficient buffer space")
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/internal/smb2/ioctl/SrvPipePeekResponseTest.java
// Prepare buffer with specific pattern byte[] buffer = new byte[32]; byte[] expectedData = new byte[16]; // Fill data section with pattern for (int i = 0; i < 16; i++) { expectedData[i] = (byte) (0xA0 + i); buffer[16 + i] = expectedData[i]; } // Set header values SMBUtil.writeInt4(0x100, buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
// Verify correct portion of data is copied byte[] expectedData = new byte[partialLength]; System.arraycopy(TEST_DATA, partialOffset, expectedData, 0, partialLength); byte[] copiedData = new byte[partialLength]; System.arraycopy(dst, dstIndex, copiedData, 0, partialLength); assertArrayEquals(expectedData, copiedData); } @Test
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/org/codelibs/fess/job/PythonJobTest.java
public void test_getPyFilePath() { pythonJob.filename("test_script.py"); String expectedPath = "WEB-INF" + File.separator + "env" + File.separator + "python" + File.separator + "resources" + File.separator + "test_script.py"; assertEquals(expectedPath, pythonJob.getPyFilePath()); } // Test getPyFilePath with directory traversal attempt
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/RequestWithPathTest.java
// Test with mock String expectedPath = "/share/folder/file.txt"; when(requestWithPath.getPath()).thenReturn(expectedPath); assertEquals(expectedPath, requestWithPath.getPath()); verify(requestWithPath, times(1)).getPath(); // Test with implementation testImplementation.setPath(expectedPath); assertEquals(expectedPath, testImplementation.getPath()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
cmd/erasure-healing_test.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 48.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
// The implementation returns empty strings as empty strings, not null assertEquals(expectedShare.isEmpty() ? "" : expectedShare, result.getShare()); assertEquals(expectedPath.isEmpty() ? "" : expectedPath, result.getPath()); } @Test @DisplayName("Should handle path with multiple backslashes") void testPathWithMultipleBackslashes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
bb.putShort((short) 0); // nodeOffset (0 = null) // Write path string at offset 22 bb.position(22); String expectedPath = "\\\\test"; bb.put(expectedPath.getBytes(StandardCharsets.UTF_16LE)); bb.putShort((short) 0); // null terminator // Decode referral.decode(testBuffer, 0, testBuffer.length); // Check
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0)