- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,089 for given (0.02 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
response = new Smb2LockResponse(mockConfig); } @Test @DisplayName("Constructor should initialize with Configuration") void testConstructor() { // Given & When Smb2LockResponse lockResponse = new Smb2LockResponse(mockConfig); // Then assertNotNull(lockResponse); // Verify it's an instance of ServerMessageBlock2Response
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Given Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, 1L, 0L); // When Integer timeout = request.getOverrideTimeout(); // Then assertNull(timeout, "Cancel requests should not override timeout"); } @Test @DisplayName("Test allowChain returns false") void testAllowChain() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
void testIsAsyncTrue() { // Given when(response.isAsync()).thenReturn(true); // When boolean isAsync = response.isAsync(); // Then assertTrue(isAsync); verify(response).isAsync(); } @Test @DisplayName("Test isAsync method returning false") void testIsAsyncFalse() { // Given when(response.isAsync()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
} @Test @DisplayName("BufferCache interface should define correct method signatures") void testInterfaceContract() { // Given BufferCache cache = mockBufferCache; // When & Then - verify interface methods exist and can be called assertDoesNotThrow(() -> { cache.getBuffer();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
} @Test @DisplayName("Should create request with correct parameters") void testConstructorSetsCorrectParameters() throws Exception { // Given & When int securityMode = 0x03; int capabilities = 0x0F; long previousSessionId = 0xFEDCBA9876543210L; byte[] token = { 0x0A, 0x0B, 0x0C };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
private static final short SMB2_TREE_DISCONNECT = 0x0004; @Test @DisplayName("Should create request with correct command type") void testConstructorSetsCorrectCommand() throws Exception { // Given Configuration mockConfig = mock(Configuration.class); // When Smb2TreeDisconnectRequest req = new Smb2TreeDisconnectRequest(mockConfig);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
/** * Test writeParameterWordsWireFormat returns 0 */ @Test @DisplayName("Test writeParameterWordsWireFormat always returns 0") public void testWriteParameterWordsWireFormat() { // Given smbComTreeDisconnect = new SmbComTreeDisconnect(config); byte[] dst = new byte[100]; int dstIndex = 0; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
return randomSource.nextLong(); } // A random value that cannot be 0 and that is unsigned-less-than or equal // to the given dividend, so that we don't have half of our divisions being // trivial because the divisor is bigger than the dividend. // Using remainder here does not give us a uniform distribution but it should // not have a big impact on the measurement. private static long randomDivisor(long dividend) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
response = new Smb2TreeDisconnectResponse(mockConfig); } @Test @DisplayName("Should create response with configuration") void testConstructorWithConfiguration() { // Given & When Smb2TreeDisconnectResponse resp = new Smb2TreeDisconnectResponse(mockConfig); // Then assertNotNull(resp); assertTrue(resp instanceof ServerMessageBlock2Response);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0)