- Sort Score
 - Result 10 results
 - Languages All
 
Results 171 - 180 of 2,385 for When (0.01 sec)
- 
				
				
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0) - 
				
				
src/main/java/org/codelibs/fess/app/web/admin/general/EditForm.java
public Integer crawlingThreadCount; /** * Enable or disable search query logging. * When enabled, user search queries are logged for analysis. */ @Size(max = 10) public String searchLog; /** * Enable or disable user information tracking. * When enabled, user information is stored and tracked. */ @Size(max = 10) public String userInfo; /**Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 9.9K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
when(mockHandle.getFileId()).thenReturn(new byte[16]); when(mockTree.getReceiveBufferSize()).thenReturn(0x10000); when(mockTree.getMaximumBufferSize()).thenReturn(0x10000); when(mockTree.getConfig()).thenReturn(mockConfig); when(mockTree.isConnected()).thenReturn(true); when(mockTree.getTreeId()).thenReturn(1L);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.7K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/util/transport/RequestTest.java
// Test case for isCancel method when it returns true when(mockRequest.isCancel()).thenReturn(true); assertTrue(mockRequest.isCancel(), "isCancel should return true when mocked to do so."); verify(mockRequest, times(1)).isCancel(); } @Test void testIsCancelFalse() { // Test case for isCancel method when it returns false when(mockRequest.isCancel()).thenReturn(false);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.getName()).thenReturn("subfolder"); when(mockFile2.length()).thenReturn(0L); when(mockFile2.lastModified()).thenReturn(System.currentTimeMillis() - 1800000); when(mockFile2.isDirectory()).thenReturn(true); when(mockFile2.getAttributes()).thenReturn(0x10); // FILE_ATTRIBUTE_DIRECTORY
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
void testRenewCredentials_NtlmAuthenticatorReturnsNull() { try (MockedStatic<NtlmAuthenticator> mockedNtlmAuthenticator = mockStatic(NtlmAuthenticator.class)) { mockedNtlmAuthenticator.when(NtlmAuthenticator::getDefault).thenReturn(mockNtlmAuthenticator); mockedNtlmAuthenticator.when(
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) - 
				
				
tests/count_test.go
t.Errorf("count with join, got error: %v, count %v", err, count) } var count6 int64 if err := DB.Model(&User{}).Where("name in ?", []string{user1.Name, user2.Name, user3.Name}).Select( "(CASE WHEN name=? THEN ? ELSE ? END) as name", "count-1", "main", "other", ).Count(&count6).Find(&users).Error; err != nil || count6 != 3 { t.Fatalf(fmt.Sprintf("Count should work, but got err %v", err)) }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 6.9K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
} // Happy path: overlaps delegates to implementation and returns as stubbed @Test @DisplayName("overlaps returns true then false as stubbed") void overlapsReturnsTrueThenFalse() throws Exception { when(locator.overlaps(other)).thenReturn(true, false); assertTrue(locator.overlaps(other)); assertFalse(locator.overlaps(other)); verify(locator, times(2)).overlaps(other);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) - 
				
				
src/test/java/jcifs/netbios/NbtAddressTest.java
NetbiosAddress mockNetbiosAddress20 = mock(NetbiosAddress.class); when(mockNetbiosAddress20.getNameType()).thenReturn(0x20); when(mockNetbiosAddress20.getHostName()).thenReturn("ACTUAL_SERVER_NAME"); NetbiosAddress[] nodeStatusResponse = { mock(NetbiosAddress.class), mockNetbiosAddress20 }; when(mockNameServiceClient.getNodeStatus(nbtAddress)).thenReturn(nodeStatusResponse);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.4K bytes - Viewed (0)