- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for errormessage (0.05 sec)
-
src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java
} public void test_throwAndCatch() { // Test throwing and catching the exception String errorMessage = "LDAP server not reachable"; try { throw new LdapConfigurationException(errorMessage); } catch (LdapConfigurationException e) { assertEquals(errorMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ServletRuntimeExceptionTest.java
public void test_constructor_withServletException() { // Create a ServletException with a message String errorMessage = "Test servlet error message"; ServletException servletException = new ServletException(errorMessage); // Wrap it in ServletRuntimeException ServletRuntimeException runtimeException = new ServletRuntimeException(servletException);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java
} public void test_throwAndCatch() { // Test throwing and catching the exception final String errorMessage = "Data store operation failed"; try { throw new DataStoreException(errorMessage); } catch (DataStoreException e) { assertEquals(errorMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
// Setup mock SearchLogHelper that throws exception final String errorMessage = "Test exception occurred"; SearchLogHelper mockSearchLogHelper = new SearchLogHelper() { @Override public void storeSearchLog() { throw new RuntimeException(errorMessage); } }; ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java
} final String errorMessage = longMessage.toString(); // Create mock SearchEngineClient that throws exception with long message searchEngineClient = new SearchEngineClient() { @Override public long deleteByQuery(String index, QueryBuilder query) { throw new RuntimeException(errorMessage); } };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java
// Test that message is inherited from the cause String errorMessage = "Invalid query syntax"; ParseException parseException = new ParseException(errorMessage); QueryParseException queryParseException = new QueryParseException(parseException); assertEquals("org.apache.lucene.queryparser.classic.ParseException: " + errorMessage, queryParseException.getMessage()); } public void test_getCause() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Preconditions.java
* * @param expression a boolean expression * @param errorMessage the exception message to use if the check fails; will be converted to a * string using {@link String#valueOf(Object)} * @throws IllegalArgumentException if {@code expression} is false */ public static void checkArgument(boolean expression, @Nullable Object errorMessage) { if (!expression) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 10 22:11:00 UTC 2025 - 53K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
AbstractFuture<String> future = new AbstractFuture<String>() {}; AtomicReference<String> errorMessage = Atomics.newReference(); executor.execute( new Runnable() { @Override public void run() { future.set("success"); if (!future.isDone()) { errorMessage.set("Set call exited before future was complete."); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
AbstractFuture<String> future = new AbstractFuture<String>() {}; AtomicReference<String> errorMessage = Atomics.newReference(); executor.execute( new Runnable() { @Override public void run() { future.set("success"); if (!future.isDone()) { errorMessage.set("Set call exited before future was complete."); } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 46.8K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
try { new NullPointerTester().testMethod(bar, method); } catch (AssertionError incorrectError) { String errorMessage = rootLocaleFormat("Should not have flagged method %s for %s", method.getName(), bar); assertNull(errorMessage, incorrectError); } } public void verifyBarFail(Method method, TwoArg bar) { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 47.7K bytes - Viewed (0)