- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 689 for WHEN (0.01 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java
sitemap.setLoc("https://example.com/page1"); SitemapSet sitemapSet = new SitemapSet(); sitemapSet.addSitemap(sitemap); when(crawlerContainer.getComponent("sitemapsHelper")).thenReturn(sitemapsHelper); try { when(sitemapsHelper.parse(any(InputStream.class))).thenReturn(sitemapSet); } catch (Exception e) { fail("Should not throw exception in test setup"); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096); // Act return new SmbPipeOutputStream(handle, tree); } @ParameterizedTestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/DfsReferralDataTest.java
// When int result = mockReferralData.getPathConsumed(); // Then assertEquals(pathConsumed, result); verify(mockReferralData).getPathConsumed(); } @Test @DisplayName("Should get path") void testGetPath() { // Given String path = "/test/path";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/context/CIFSContextWrapperTest.java
when(mockDelegate.getSIDResolver()).thenReturn(mockSidResolver); assertEquals(mockSidResolver, cifsContextWrapper.getSIDResolver()); verify(mockDelegate).getSIDResolver(); } @Test void testHasDefaultCredentials_True() { // Test hasDefaultCredentials() method when true when(mockDelegate.hasDefaultCredentials()).thenReturn(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionInternalTest.java
} // Error propagation: connect to logon share throws SmbException @Test @DisplayName("treeConnectLogon throws SmbException when underlying call fails") void treeConnectLogon_throws() throws SmbException { doThrow(new SmbException("logon failed")).when(session).treeConnectLogon(); SmbException ex = assertThrows(SmbException.class, () -> session.treeConnectLogon());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/AddressTest.java
} @Test @DisplayName("unwrap method should return correct type when supported") void testUnwrapMethodContract() throws Exception { // Given when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress); // When & Then Address unwrapped = mockAddress.unwrap(Address.class);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
// Given when(mockNetbiosName.getNameType()).thenReturn(nameType); // When int result = mockNetbiosName.getNameType(); // Then assertEquals(nameType, result); } @Test @DisplayName("Should handle null name") void testNullName() { // Given when(mockNetbiosName.getName()).thenReturn(null); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
MockitoAnnotations.openMocks(this); when(session.getConfig()).thenReturn(config); when(session.getContext()).thenReturn(context); when(session.getTransport()).thenReturn(transport); when(session.acquire()).thenReturn(session); when(config.isTraceResourceUsage()).thenReturn(false); when(context.getConfig()).thenReturn(config); when(session.isConnected()).thenReturn(true); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
// Arrange int cap1 = 0x00000001; int cap2 = 0x00000002; int cap3 = 0x00000004; when(negotiationResponse.haveCapabilitiy(cap1)).thenReturn(true); when(negotiationResponse.haveCapabilitiy(cap2)).thenReturn(false); when(negotiationResponse.haveCapabilitiy(cap3)).thenReturn(true); // Act & Assert assertTrue(negotiationResponse.haveCapabilitiy(cap1));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
// When mockContext.close(); // Then verify(mockContext).close(); } @Test @DisplayName("Should get Configuration") void testGetConfig() { // Given Configuration mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0)