- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 64 for Scenarios (0.07 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java
* using the Apache Tika library. It extends {@link PasswordBasedExtractor} to handle password-protected files. * </p> * * <p> * This class provides methods to extract text from an input stream, handling different scenarios such as: * </p> * <ul> * <li>Normalizing text content</li> * <li>Handling resource names and content types</li> * <li>Retrying extraction without resource name or content type if the initial attempt fails</li>Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 30.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
th.close(); } else { // Let connection pooling handle cleanup - this improves performance // for scenarios where the same file or directory is accessed multiple times log.trace("Tree handle released to connection pool for reuse"); // The connection pool will handle cleanup based on its own timeout settings
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
void testIsTrustedDomain_DfsDisabled() throws SmbAuthException { // Scenario: DFS is disabled in the configuration. when(mockConfig.isDfsDisabled()).thenReturn(true); assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com")); } @Test void testIsTrustedDomain_NoUserDomain() throws SmbAuthException { // Scenario: The user credentials do not specify a domain.
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
assertEquals(11, response.dialectIndex); } @Test void testReadBytesWireFormat_NoExtendedSecurity() throws UnsupportedEncodingException { // Setup server data for this scenario serverData.capabilities = 0; // No extended security serverData.encryptionKeyLength = 8; response.byteCount = 15; // 8 bytes key + 6 bytes "DOMAIN" + 1 null terminator // Prepare byte array
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
} /** * Test partial read scenario where parameters are not fully read */ @Test public void readBytesWireFormat_partialRead_doesNotSetFlags() { DummyResponse d = new DummyResponse(); byte[] tx = new byte[100]; d.txn_buf = tx; // Set up a partial read scenario d.bufParameterStart = 0; d.bufDataStart = 20;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
} /** * Test watch() method returning empty list when buffer overflow */ @Test void testWatchBufferOverflow() throws CIFSException { // Setup mock behavior for buffer overflow scenario when(watchHandle.watch()).thenReturn(Collections.emptyList()); // Execute List<FileNotifyInformation> result = watchHandle.watch(); // Verify assertNotNull(result);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ExtractDataTest.java
String result = data.toString(); assertNotNull(result); assertTrue(result.contains("ExtractData")); } public void test_complexScenario() { // Test complex scenario with multiple operations ExtractData data = new ExtractData(); // Set contentRegistered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
* provides {@code static final} constants, so the test suite focuses on * value correctness, bit‑mask logic, and some derived properties. * * <p>Mockito is exercised in a dummy scenario to satisfy the * request for an interaction test. The mock represents a * {@code SmbTransport} collaborator and is used only for * demonstration – the real class behaviour is not required for * validating constants. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
@Test @DisplayName("send with explicit null varargs propagates exception from implementation") void send_nullVarargsArray_throws() throws Exception { // Arrange: passing explicit null vararg array is edge scenario when(tree.send(eq(request), isNull())).thenThrow(new CIFSException("null params")); // Act + AssertRegistered: 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/smb1/smb1/AllocInfoTest.java
void testCapacityEdgeValues(long capacity) { when(mockAllocInfo.getCapacity()).thenReturn(capacity); assertEquals(capacity, mockAllocInfo.getCapacity()); } /** * Null pointer scenario – calls on a null reference should raise * {@link NullPointerException}. This test is defensive; in real code it * would likely be handled elsewhere. */ @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0)