Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 878 for Verify (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertEquals(0x01, SMBUtil.readInt4(buffer, headerStart + 44)); // Write flags
    
                // Verify data offset is written correctly
                int dataOffsetValue = SMBUtil.readInt2(buffer, headerStart + 2);
                assertEquals(headerStart - 0 + 48, dataOffsetValue); // Assuming getHeaderStart() returns 0
    
                // Verify data is copied
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // When
            encryptionContext.secureWipeKeys();
    
            // Then - Verify keys are wiped (we can't directly access private fields,
            // but we can verify the context behaves correctly after wiping)
            // After wiping, operations that require keys should fail
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            // Create buffer for encoding
            byte[] buffer = new byte[16];
            int bytesWritten = info.encode(buffer, 0);
    
            // Verify bytes written
            assertEquals(8, bytesWritten);
    
            // Verify encoded value
            long decodedValue = SMBUtil.readInt8(buffer, 0);
            assertEquals(endOfFile, decodedValue);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacConstantsTest.java

         * This prevents accidental modification of these critical constants.
         */
        @Test
        void testConstantValues() {
            // Verify the PAC version
            assertEquals(0, PacConstants.PAC_VERSION, "PAC_VERSION should be 0");
    
            // Verify PAC buffer types
            assertEquals(1, PacConstants.LOGON_INFO, "LOGON_INFO should be 1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/MsrpcQueryInformationPolicyTest.java

            // Verify that the super constructor was called with the correct arguments
            // Note: Mockito cannot directly verify super constructor calls.
            // We assume if the object is created, the super constructor was called.
            // We can verify the state of the object after construction.
    
            // Verify ptype and flags are set correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java

    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Tests for the NdrObject abstract class.
     * This test uses a concrete implementation to verify the abstract contract.
     */
    @ExtendWith(MockitoExtension.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java

            // Call the decode method with the mocked NdrBuffer
            ndrHyper.decode(mockNdrBuffer);
    
            // Verify that dec_ndr_hyper was called exactly once
            verify(mockNdrBuffer, times(1)).dec_ndr_hyper();
            verifyNoMoreInteractions(mockNdrBuffer);
    
            // Verify that the NdrHyper object's value was updated correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                    } else {
                        // If delete fails, at least verify copy succeeded
                        log.warn("Could not delete source after copy, but continuing");
                        deleted = true; // Proceed anyway
                    }
                }
            }
    
            // Verify results with fresh context
            CIFSContext checkContext = createFreshContext();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            verify(tree).send(reqCap.capture(), any(), any(), any());
            assertTrue(reqCap.getValue() instanceof Smb2ChangeNotifyRequest, "SMB2 request must be used");
            verify(tree, times(1)).close(); // try-with-resources must close
            verify(handle, never()).markClosed();
            verify(tree, never()).hasCapability(anyInt()); // not checked on SMB2
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            h.close(777L);
    
            // Verify SMB2 close path
            verify(tree, times(1)).send(isA(Smb2CloseRequest.class), eq(RequestParam.NO_RETRY));
            // Tree is always released in finally
            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("close(long) sends SMB1 close request and releases tree when SMB1")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top