- Sort Score
- Result 10 results
- Languages All
Results 731 - 740 of 2,174 for Exception (0.17 sec)
-
src/test/java/jcifs/context/CIFSContextWrapperTest.java
String url = "smb://server/share/file.txt"; SmbResource mockSmbResource = mock(SmbFile.class); // Mocking SmbFile constructor is tricky, so we'll just verify the call to the delegate // and ensure no exception is thrown for a valid URL. // The actual SmbFile creation is outside the scope of this wrapper's direct responsibility. // For coverage, we'll ensure the method doesn't throw MalformedURLException for a valid URL
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
assertEquals(newPosition, smbRandomAccessFile.getFilePointer()); } @Test void testSeekNegativePosition() throws SmbException { // seek doesn't throw exception for negative position, it just sets it smbRandomAccessFile.seek(-1); assertEquals(-1, smbRandomAccessFile.getFilePointer()); } @Test void testReadByte() throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
@DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should initialize with SMB_QUERY_FILE_BASIC_INFO level") void testConstructorWithBasicInfo() throws Exception { Trans2QueryPathInformationResponse resp = new Trans2QueryPathInformationResponse(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_BASIC_INFO);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
private SmbFile mockFile2; private LeaseManager baseLeaseManager; private DirectoryLeaseManager directoryLeaseManager; private AutoCloseable mocks; @BeforeEach public void setUp() throws Exception { mocks = MockitoAnnotations.openMocks(this); when(context.getConfig()).thenReturn(config); when(config.isDirectoryNotificationsEnabled()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
} public void start() { try { server.start(); } catch (final Exception e) { throw new CrawlerSystemException(e); } } public void stop() { try { server.stop(); server.join(); } catch (final Exception e) { throw new CrawlerSystemException(e); } finally { if (tempDocRoot) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
throw new CIFSException("Automatic key rotation failed", e); } } else { // Fall back to throwing exception if no session key is available totalKeyRotations.incrementAndGet(); lastKeyRotationTime.set(System.currentTimeMillis());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
@Test void testAccept_ThrowsSmbException() throws SmbException { // Given a filter dosFileFilter = new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE); // and a mock file that throws an exception when getAttributes is called SmbException expectedException = new SmbException("Failed to get attributes"); when(mockFile.getAttributes()).thenThrow(expectedException); // When calling accept
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/FilenameExtractor.java
import java.io.InputStream; import java.util.Map; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.crawler.entity.ExtractData; import org.codelibs.fess.crawler.exception.CrawlerSystemException; import org.codelibs.fess.crawler.exception.ExtractException; /** * Extracts the filename from the parameters. */ public class FilenameExtractor extends AbstractExtractor { /**
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java
import org.codelibs.fess.app.pager.BadWordPager; import org.codelibs.fess.app.service.BadWordService; import org.codelibs.fess.app.web.CrudMode; import org.codelibs.fess.app.web.base.FessAdminAction; import org.codelibs.fess.exception.FessSystemException; import org.codelibs.fess.helper.SuggestHelper; import org.codelibs.fess.helper.SystemHelper; import org.codelibs.fess.opensearch.config.exentity.BadWord; import org.codelibs.fess.util.ComponentUtil;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 18.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java
} catch (final Exception e) { logger.warn("Could not close a process input stream.", e); } }); CommonPoolUtil.execute(() -> { try { CloseableUtil.closeQuietly(p.getErrorStream()); } catch (final Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Fri Jul 18 14:34:06 UTC 2025 - 14.7K bytes - Viewed (0)