- Sort Score
- Result 10 results
- Languages All
Results 981 - 990 of 2,324 for exception (0.04 sec)
-
src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java
assertEquals("xyz", getIdMethod.invoke(crawlingConfigHelper, "Dxyz")); } catch (Exception e) { fail("Failed to test getId method: " + e.getMessage()); } } public void test_getCrawlingConfig_cacheExceptionHandling() { // Register a service that throws exception ComponentUtil.register(new WebConfigService() { @Override
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 34.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
assertFalse(testBlock.isReceived()); } @Test @DisplayName("Test exception state") void testExceptionState() { Exception testException = new RuntimeException("Test error"); assertNull(testBlock.getException()); testBlock.exception(testException); assertEquals(testException, testBlock.getException()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
throw se; } catch (final IOException ioe) { throw new SmbException("Failed to connect to server", ioe); } } /** * @param loc * @return tree handle * @throws IOException */ public synchronized SmbTreeHandleImpl connect(final SmbResourceLocatorImpl loc) throws IOException { try (SmbSessionImpl session = getSession()) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/test/java/jcifs/smb/DfsImplTest.java
when(mockConfig.getDfsTtl()).thenReturn(300L); // Mock transport to throw IOException - simulating connection failure when(mockTransportPool.getSmbTransport(any(CIFSContext.class), anyString(), anyInt(), anyBoolean(), anyBoolean())) .thenThrow(new IOException("Connection failed")); // Instantiate the class under test dfsImpl = new DfsImpl(mockContext); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java
// @Param({"4", "8", "64", "1024", "1048576", "1048577", "6710884", "6710883"}) @Param({"4", "8", "64", "1024"}) private int length; @BeforeExperiment void setUp() throws Exception { Random r = new Random(); ba1 = new byte[length]; r.nextBytes(ba1); ba2 = Arrays.copyOf(ba1, ba1.length); // Differ at the last element ba3 = Arrays.copyOf(ba1, ba1.length);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TestLogHandler.java
* * <pre> * TestLogHandler handler; * * protected void setUp() throws Exception { * super.setUp(); * handler = new TestLogHandler(); * SomeClass.logger.addHandler(handler); * addTearDown(new TearDown() { * public void tearDown() throws Exception { * SomeClass.logger.removeHandler(handler); * } * }); * } * * public void test() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
verify(mockBuffer).dec_ndr_long(); } /** * Test case for the encode method when it throws an NdrException. * Verifies that the exception is correctly propagated. */ @Test void testEncodeThrowsNdrException() { // Given ndrObject.setThrowOnEncode(true); // When & Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/keymatch/ApiAdminKeymatchAction.java
body.crudMode = CrudMode.CREATE; final KeyMatch keyMatch = getKeyMatch(body).map(entity -> { try { keyMatchService.store(entity); } catch (final Exception e) { logger.warn("Failed to process a request.", e); throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e))); }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/keymatch/AdminKeymatchAction.java
keyMatchService.store(entity); saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL)); ComponentUtil.getKeyMatchHelper().update(); } catch (final Exception e) { logger.warn("Failed to process a request.", e); throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)),
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 16.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java
subset.clear(); assertThat(elementSet).containsExactly("a", "f").inOrder(); assertThat(subset).isEmpty(); assertEquals(3, ms.size()); } public void testCustomComparator() throws Exception { Comparator<String> comparator = new Comparator<String>() { @Override public int compare(String o1, String o2) { return o2.compareTo(o1); } };Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13K bytes - Viewed (0)