- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 773 for When (1.43 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpFilterTest.java
filter = new NtlmHttpFilter(); // Setup lenient stubs for common mock interactions lenient().when(request.getSession()).thenReturn(httpSession); lenient().when(request.getSession(anyBoolean())).thenReturn(httpSession); lenient().when(response.getOutputStream()).thenReturn(servletOutputStream); } @Test void testInit_success() throws ServletException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
} } @BeforeEach void setUp() { lenient().when(fileEntry.getName()).thenReturn("test"); } @Test @DisplayName("Iterator without filter - simple case") void iteratorWithoutFilter() { // Setup: constructor calls advance() once when(delegate.hasNext()).thenReturn(true, false); when(delegate.next()).thenReturn(fileEntry);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/FileTypeHelper.java
* at runtime. When a MIME type is not found in the mapping, a default value * is returned. */ public class FileTypeHelper { /** Logger instance for this class */ private static final Logger logger = LogManager.getLogger(FileTypeHelper.class); /** Default file type value returned when MIME type is not found in mappings */ protected String defaultValue = "others";Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
@Test @DisplayName("Should use special name when no expanded names") void testFromReferralWithSpecialName() { when(mockReferral.getTtl()).thenReturn(300); when(mockReferral.getRFlags()).thenReturn(Trans2GetDfsReferralResponse.FLAGS_NAME_LIST_REFERRAL); when(mockReferral.getExpandedNames()).thenReturn(new String[0]); when(mockReferral.getSpecialName()).thenReturn("\\SPECIAL");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java
// Test with smaller maximum buffer size when(mockConfig.getMaximumBufferSize()).thenReturn(8192); when(mockConfig.getListSize()).thenReturn(16384); request = new Smb2QueryDirectoryRequest(mockConfig); assertNotNull(request); // Test with smaller list size when(mockConfig.getMaximumBufferSize()).thenReturn(16384); when(mockConfig.getListSize()).thenReturn(8192);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/http/HandlerTest.java
assertNotNull(connection, "Connection should not be null even when jcifs is in handler path."); assertTrue(connection instanceof NtlmHttpURLConnection, "Should use cached handler and wrap it."); } @Test void testOpenConnection_NullSystemProperty_UsesDefaultHandlers() throws Exception { // This test verifies that when the system property is null, the handlerRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
@Override public int getErrorCode() { return DcerpcError.DCERPC_FAULT_OP_RNG_ERROR; } }).when(mockHandle).sendrecv(any(MsrpcSamrConnect4.class)); // Subsequent call for MsrpcSamrConnect2 should succeed doNothing().when(mockHandle).sendrecv(any(MsrpcSamrConnect2.class)); try (SamrPolicyHandle handle = new SamrPolicyHandle(mockHandle, server, access)) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
@Test @DisplayName("Constructor should initialize with config, fileId and fileName") void testConstructorWithAllParameters() { // When Smb2CloseResponse closeResponse = new Smb2CloseResponse(mockConfig, testFileId, testFileName); // Then assertNotNull(closeResponse); assertArrayEquals(testFileId, closeResponse.getFileId());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0)