- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 150 for gracefully (0.06 seconds)
-
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
fail("setObject should handle missing request gracefully: " + e.getMessage()); } } @Test public void test_setObject_withNullName() { // Test setObject with null name try { WebApiUtil.setObject(null, "testValue"); } catch (Exception e) { fail("setObject should handle null name gracefully: " + e.getMessage()); } } @Test
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java
@Test @DisplayName("should handle missing POM gracefully") void shouldHandleMissingPomGracefully() throws Exception { // No POM file in the directory UpgradeContext context = TestUtils.createMockContext(tempDir); // Execute apply goal applyGoal.execute(context); // Should handle gracefully (exact behavior depends on implementation)Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java
processor.register(new ExceptionThrowingSearcher(new RuntimeException("Test exception"))); processor.init(); // Should handle exception gracefully and return results from working searcher final List<Map<String, Object>> results = processor.search("*", new TestSearchRequestParams(0, 10, 0), OptionalThing.empty()); assertNotNull(results); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 14.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
assertEquals(0, result.errorPoms().size(), "Should have no errors"); } @Test @DisplayName("should handle strategy failures gracefully") void shouldHandleStrategyFailuresGracefully() throws Exception { UpgradeContext context = createMockContext(); Map<Path, Document> pomMap = Map.of(Paths.get("pom.xml"), mock(Document.class));
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
// Should either throw exception or fail gracefully after close try { digest.sign(data, 0, data.length, request, response); // If no exception is thrown, the operation should have been no-op or handled gracefully assertTrue(true, "Sign operation after close should either throw exception or handle gracefully"); } catch (RuntimeException e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
void testConstructorWithNullPipeName() { // Act transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, null); // Assert assertNotNull(transWaitNamedPipe); assertNull(transWaitNamedPipe.name); } @Test @DisplayName("Constructor with empty pipe name should handle gracefully") void testConstructorWithEmptyPipeName() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java
} } }; FwAssistantDirector assistantDirector = createMockAssistantDirector(); // Should handle ClassNotFoundException gracefully customHook.hook(assistantDirector); // Verify no exception is thrown to the caller assertTrue(true); } // Test shutdownCommonsHttpClient private method with reflection @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 8.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorEdgeCaseTest.java
*/ @Test public void test_searchWithNegativeStartPosition() throws Exception { try (RankFusionProcessor processor = new RankFusionProcessor()) { processor.setSearcher(new TestSearcher(100)); processor.init(); // Implementation should handle this gracefullyCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 14.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/entraid/EntraIdAuthenticatorTest.java
List<String> groupList = new ArrayList<>(); List<String> roleList = new ArrayList<>(); List<String> groupIdsForParentLookup = new ArrayList<>(); // Call with invalid URL - should handle gracefully Method method = EntraIdAuthenticator.class.getDeclaredMethod("processDirectMemberOf", EntraIdUser.class, List.class, List.class, List.class, String.class); method.setAccessible(true);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/config/PropertyConfigurationTest.java
assertEquals("testpass", config.getDefaultPassword()); assertEquals("testdomain", config.getDefaultDomain()); } @Test @DisplayName("Should handle null properties gracefully") void testNullProperties() throws CIFSException { // PropertyConfiguration doesn't handle null properties // It should throw NullPointerException assertThrows(NullPointerException.class, () -> {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0)