Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 447 for setMessage (0.62 sec)

  1. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                // Only count specific exceptions as failures using custom predicate
                java.util.function.Predicate<Exception> isFailure = e -> e.getMessage() != null && e.getMessage().contains("critical");
    
                // Non-critical failures - should NOT open circuit
                for (int i = 0; i < 5; i++) {
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java

        public void testSUnsupportedOperationExceptionString() {
            final ClUnsupportedOperationException clUnsupportedOperationException = new ClUnsupportedOperationException("hoge");
            assertThat(clUnsupportedOperationException.getMessage(), is("hoge"));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.exception.ClUnsupportedOperationException#SUnsupportedOperationException(java.lang.String, java.lang.Throwable)}
         * .
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/context/SingletonContextTest.java

            } catch (NoSuchFieldException | IllegalAccessException e) {
                log.error("Failed to reset SingletonContext instance", e);
                fail("Failed to reset SingletonContext instance: " + e.getMessage());
            }
            // Clear system properties that might affect the test
            System.clearProperty("jcifs.properties");
            System.clearProperty("java.protocol.handler.pkgs");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            }, "A PACDecodingException should be thrown for a non-empty string with a zero pointer.");
    
            // Verify the exception message
            assertEquals("Non-empty string", exception.getMessage(), "The exception message is not correct.");
        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a string of incorrect length.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java

            QueryParseException queryParseException = new QueryParseException(parseException);
    
            assertEquals("org.apache.lucene.queryparser.classic.ParseException: " + errorMessage, queryParseException.getMessage());
        }
    
        public void test_getCause() {
            // Test that the cause is properly set and retrievable
            ParseException parseException = new ParseException("Query parsing failed");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java

            assertTrue(exception instanceof Throwable);
        }
    
        public void test_getMessage() {
            // Test that getMessage returns null (no message set in constructor)
            UserRoleLoginException exception = new UserRoleLoginException(RootAction.class);
            assertNull(exception.getMessage());
        }
    
        public void test_getCause() {
            // Test that getCause returns null (no cause set in constructor)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java

        @Override
        public Exception getException() {
            return exception;
        }
    
        @Override
        public String getMessage() {
            String msg;
    
            if (message != null && !message.isEmpty()) {
                msg = message;
            } else {
                msg = exception.getMessage();
    
                if (msg == null) {
                    msg = "";
                }
            }
    
            return msg;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

                    "Should throw exception when length < 24");
    
            assertEquals("Invalid resume key", exception.getMessage(), "Exception message should match");
        }
    
        @Test
        @DisplayName("Test decode throws exception with zero length")
        void testDecodeThrowsExceptionWithZeroLength() {
            byte[] buffer = new byte[28];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

            byte[] empty = new byte[0];
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(empty, new KerberosKey[0]));
            assertTrue(ex.getMessage().contains("Empty kerberos ApReq"));
        }
    
        @Test
        @DisplayName("byte[] ctor: malformed DER is wrapped as PACDecodingException (IOException path)")
        void byteArrayConstructor_malformedDER_throwsWrapped() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

        }
    
        private static String getMessage(Throwable error, String def) {
            if (error == null) {
                return def;
            }
            String msg = error.getMessage();
            if (msg != null && !msg.isEmpty()) {
                return msg;
            }
            return getMessage(error.getCause(), def);
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 31.2K bytes
    - Viewed (0)
Back to top