- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for expectedData (0.05 sec)
-
guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
* result doesn't match the expected value. */ public void assertSuccess(Object expectedData) throws Throwable { // Verify that the listener executed in a reasonable amount of time. Assert.assertTrue(countDownLatch.await(1L, SECONDS)); try { Assert.assertEquals(expectedData, future.get()); } catch (ExecutionException e) { throw e.getCause(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri May 12 18:12:42 UTC 2023 - 3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt
}, ) } @Test fun maxLengthDataFrame() { val expectedData = ByteArray(Http2.INITIAL_MAX_FRAME_SIZE) Arrays.fill(expectedData, 2.toByte()) writeMedium(frame, expectedData.size) frame.writeByte(Http2.TYPE_DATA) frame.writeByte(FLAG_NONE) frame.writeInt(expectedStreamId and 0x7fffffff) frame.write(expectedData) // Check writer sends the same bytes.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 28.1K bytes - Viewed (0) -
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) -
android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
* result doesn't match the expected value. */ public void assertSuccess(Object expectedData) throws Throwable { // Verify that the listener executed in a reasonable amount of time. Assert.assertTrue(countDownLatch.await(1L, SECONDS)); try { Assert.assertEquals(expectedData, future.get()); } catch (ExecutionException e) { throw e.getCause(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri May 12 18:12:42 UTC 2023 - 3K 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)