- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,544 for Then (0.11 sec)
-
src/test/java/jcifs/SmbTransportPoolTest.java
@DisplayName("Should handle exception when getting challenge") void testGetChallengeException() throws CIFSException { // Given when(transportPool.getChallenge(context, address)).thenThrow(new CIFSException("Failed to get challenge")); // When & Then assertThrows(CIFSException.class, () -> transportPool.getChallenge(context, address)); } } @NestedRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
} @Test @DisplayName("Constructor should initialize with Configuration") void testConstructor() { // Given & When Smb2FlushResponse flushResponse = new Smb2FlushResponse(mockConfig); // Then assertNotNull(flushResponse); // Cannot test getConfig() as it's protected } @Nested @DisplayName("writeBytesWireFormat tests")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
byte[] dst = new byte[42]; // When int result = trans2SetFileInformation.writeDataWireFormat(dst, 0); // Then assertEquals(40, result); // Returns 40 bytes written } @Test void testReadSetupWireFormat() { // When int result = trans2SetFileInformation.readSetupWireFormat(new byte[0], 0, 0); // Then assertEquals(0, result); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/AllocInfoTest.java
@DisplayName("Should handle multiple invocations") void shouldHandleMultipleInvocations() { // Given when(mockAllocInfo.getCapacity()).thenReturn(1000L, 2000L, 3000L); when(mockAllocInfo.getFree()).thenReturn(500L, 1000L, 1500L); // When & Then assertEquals(1000L, mockAllocInfo.getCapacity()); assertEquals(500L, mockAllocInfo.getFree());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/DfsReferralDataTest.java
when(mockReferralData.getShare()).thenReturn(share); // When String result = mockReferralData.getShare(); // Then assertEquals(share, result); verify(mockReferralData).getShare(); } @Test @DisplayName("Should get path consumed") void testGetPathConsumed() { // Given int pathConsumed = 10;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtStatusTest.java
// When/Then assertEquals((int) 0x80000005L, infoStatus); // Should be an informational/warning status (0x8 prefix) assertTrue((infoStatus & (int) 0x80000000L) == (int) 0x80000000L); } @Test @DisplayName("Should handle pending status") void testPendingStatus() { // Given int pendingStatus = NtStatus.NT_STATUS_PENDING; // When/ThenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
int result = 0; when(mockBuffer.dec_ndr_short()).thenReturn(4096, 4096, 10, result, 0); when(mockBuffer.dec_ndr_long()).thenReturn(12345); when(mockBuffer.dec_ndr_small()).thenReturn(1); lenient().doNothing().when(mockBuffer).advance(anyInt()); lenient().when(mockBuffer.align(anyInt())).thenReturn(0); // When bind.decode_out(mockBuffer);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
void testGetCipherId() { // When int cipherId = encryptionContext.getCipherId(); // Then assertEquals(1, cipherId, "Should return the cipher ID set in constructor"); } @Test @DisplayName("Should return correct dialect version") void testGetDialect() { // When DialectVersion dialect = encryptionContext.getDialect();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/jcifs/BufferCacheTest.java
doNothing().when(mockBufferCache).releaseBuffer(buffer); // When & Then assertDoesNotThrow(() -> { mockBufferCache.releaseBuffer(buffer); }, "releaseBuffer should handle valid buffers"); } @Test @DisplayName("getBuffer should return buffers for use") void testGetBufferBasicUsage() { // When byte[] buffer1 = testCache.getBuffer();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/RuntimeCIFSExceptionTest.java
@Test @DisplayName("Should create RuntimeCIFSException with default constructor") void testDefaultConstructor() { // When RuntimeCIFSException exception = new RuntimeCIFSException(); // Then assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause()); assertTrue(exception instanceof RuntimeException);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.2K bytes - Viewed (0)