- Sort Score
- Num 10 results
- Language All
Results 361 - 370 of 1,051 for Verify (0.07 seconds)
-
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
SMBUtil.writeInt4(expectedLength, buffer, 0); int result = response.readParametersWireFormat(buffer, 0, buffer.length); assertEquals(4, result); // Access private field to verify length was set Field lengthField = response.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("length"); lengthField.setAccessible(true);
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/smb2/lock/Smb2LockRequestTest.java
int bytesWritten = req.writeBytesWireFormat(buffer, 0); // Verify structure assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Structure size assertEquals(1, SMBUtil.readInt2(buffer, 2)); // Lock count // Verify lock sequence (bits 4-7 are sequence number, bits 0-27 are index) int lockSequence = SMBUtil.readInt4(buffer, 4);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
SmbComClose close = new SmbComClose(1, 12345L); assertEquals(SMB_COM_CLOSE, close.command, "command should be SMB_COM_CLOSE after construction"); } /** * Verify that writeParameterWordsWireFormat writes the file id and the * unsigned time correctly. The last write time is zero which should be * encoded as four 0xFF bytes by {@code writeUTime}. */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
@BeforeEach void setUp() { buffer = new byte[1024]; // Initialize with a reasonable size ndrBuffer = new NdrBuffer(buffer, 0); } @Test void testConstructor() { // Verify initial state assertEquals(0, ndrBuffer.start); assertEquals(0, ndrBuffer.index); assertEquals(0, ndrBuffer.length); assertSame(ndrBuffer, ndrBuffer.deferred);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.3K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeHandleTest.java
* @throws CIFSException */ @Test void testClose() throws CIFSException { smbTreeHandle.close(); // Verify that close() was called on the mock verify(smbTreeHandle).close(); } /** * Test for close() method throwing CIFSException. * Verifies that the method correctly throws a CIFSException when configured to do so.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
list.add(new MockRunnable(countDownLatch), exec); list.add(new MockRunnable(countDownLatch), exec); assertEquals(3L, countDownLatch.getCount()); list.execute(); // Verify that all of the runnables execute in a reasonable amount of time. assertTrue(countDownLatch.await(1L, SECONDS)); } public void testExecute_idempotent() { AtomicInteger runCalled = new AtomicInteger();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 4.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java
resultFuture = buildChainingFuture(inputFuture); listener = new MockFutureListener(resultFuture); } public void testFutureGetBeforeCallback() throws Exception { // Verify that get throws a timeout exception before the callback is called. assertThrows(TimeoutException.class, () -> resultFuture.get(1L, MILLISECONDS)); } public void testFutureGetThrowsWrappedException() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 3.6K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacCredentialTypeTest.java
*/ @Test void testIsCredentialTypeCorrectWithNullData() { // The constructor check `if (!isCredentialTypeCorrect())` handles the null case. // We verify that the constructor throws an exception, which indirectly tests the desired logic. assertThrows(PACDecodingException.class, () -> new PacCredentialType(null)); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 3.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
// Verify that data was written (should write 22 bytes based on implementation) assertEquals(22, result, "writeParameterWordsWireFormat should write 22 bytes"); } @Test void testWriteBytesWireFormat() { byte[] dst = new byte[1024]; int result = setupAndX.writeBytesWireFormat(dst, 0); // Verify that data was writtenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
cmd/bucket-handlers_test.go
} // Verify response the V2 signed HTTP request. // initialize HTTP NewRecorder, this records any mutations to response writer inside the handler. recV2 := httptest.NewRecorder() // construct HTTP request for PUT bucket policy endpoint. // verify response for V2 signed HTTP request.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 39.8K bytes - Click Count (0)