- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 773 for When (4 sec)
-
src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java
when(request.getNext()).thenReturn(nextRequest); when(nextRequest.getNext()).thenReturn(thirdRequest); when(thirdRequest.getNext()).thenReturn(null); when(request.allowChain(nextRequest)).thenReturn(true); when(nextRequest.allowChain(thirdRequest)).thenReturn(true); // When CommonServerMessageBlockRequest second = request.getNext();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java
final Rule rule = mock(Rule.class); final ResponseProcessor responseProcessor = mock(ResponseProcessor.class); when(ruleManager.getRule(responseData)).thenReturn(rule); when(rule.getRuleId()).thenReturn("test-rule"); when(rule.getResponseProcessor()).thenReturn(responseProcessor); // Use reflection to access protected method final java.lang.reflect.Method method =Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 18.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// When & Then - should handle gracefully assertThrows(Exception.class, () -> { response.readBytesWireFormat(buffer, offset); }); } @Test @DisplayName("Should verify NotifyResponse interface implementation") void testNotifyResponseInterface() { // Then assertTrue(response instanceof NotifyResponse);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
verifyNoMoreInteractions(handle); } @Test @DisplayName("ensureDFSResolved(): throws CIFSException when underlying call fails") void ensureDFSResolved_throws() throws Exception { // Arrange: configure the mock to throw doThrow(new CIFSException("DFS resolution failed")).when(handle).ensureDFSResolved(); // Act + Assert: exception is propagated with message
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
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/multichannel/ChannelLoadBalancerTest.java
} @Test void testSingleChannelSelection() { when(mockChannelManager.getHealthyChannels()).thenReturn(Collections.singletonList(channel1)); ChannelInfo selected = loadBalancer.selectChannel(mockMessage); assertEquals(channel1, selected); } @Test void testNoChannelsAvailable() { when(mockChannelManager.getHealthyChannels()).thenReturn(Collections.emptyList());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.7K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
// Given when(mockDelegate.isUseSMB2OnlyNegotiation()).thenReturn(true); when(mockDelegate.isRequireSecureNegotiate()).thenReturn(false); when(mockDelegate.isSendNTLMTargetName()).thenReturn(true); when(mockDelegate.isPort139FailoverEnabled()).thenReturn(false); when(mockDelegate.isDfsStrictView()).thenReturn(true); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
*/ @Test void testConstructor() { // Given String serverName = "test-server"; // When MsrpcDfsRootEnum dfsRootEnum = new MsrpcDfsRootEnum(serverName); // Then assertNotNull(dfsRootEnum, "The MsrpcDfsRootEnum object should not be null.");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
void testConstructorWithNetbiosNames() { when(mockCalledName.getName()).thenReturn("SERVER"); when(mockCalledName.getNameType()).thenReturn(0x20); when(mockCalledName.getScope()).thenReturn(null); when(mockCallingName.getName()).thenReturn("CLIENT"); when(mockCallingName.getNameType()).thenReturn(0x00); when(mockCallingName.getScope()).thenReturn(null);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequest.java
/** * Notify when a directory name changes */ public static final int FILE_NOTIFY_CHANGE_DIR_NAME = 0x2; /** * Notify when file attributes change */ public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x4; /** * Notify when file size changes */ public static final int FILE_NOTIFY_CHANGE_SIZE = 0x8; /** * Notify when last write time changes */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.5K bytes - Viewed (0)