Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 523 for getMessage (0.25 sec)

  1. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

        void defaultConstructor_behavesAsExpected() {
            // Arrange & Act
            SMBProtocolDecodingException ex = new SMBProtocolDecodingException();
    
            // Assert state
            assertNull(ex.getMessage(), "Default constructor should have null message");
            assertNull(ex.getCause(), "Default constructor should have null cause");
            assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TextExtractorEnhancedTest.java

                assertTrue("Error message should contain encoding information", e.getMessage().contains("encoding"));
                assertTrue("Error message should contain the specific encoding", e.getMessage().contains(customEncoding));
                assertTrue("Error message should indicate extraction failure", e.getMessage().contains("Failed to extract"));
            } finally {
                // Reset to default encoding
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

            final StringBuilder buf = new StringBuilder(256);
            buf.append(cause.getMessage()).append(" : [");
            SQLException next = cause.getNextException();
            while (next != null) {
                buf.append(MessageFormatter.getSimpleMessage("ECL0071", next.getMessage(), Integer.toString(next.getErrorCode()),
                        next.getSQLState())).append("], [");
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/plugin/PluginExecutionException.java

            } else {
                message = "Mojo execution failed";
            }
    
            if (cause != null && cause.getMessage() != null && !cause.getMessage().isEmpty()) {
                message += ": " + cause.getMessage();
            } else {
                message += ".";
            }
    
            return message;
        }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

            DcerpcException exception = new DcerpcException(errorCode);
    
            assertEquals(errorCode, exception.getErrorCode(), "Error code should match the input.");
            assertTrue(exception.getMessage().contains("DCERPC_FAULT_ACCESS_DENIED"),
                    "Message should contain the corresponding fault message.");
        }
    
        /**
         * Test constructor DcerpcException(int error) with an unknown error code.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            // Act & Assert: calling release without prior acquire drops usage below zero
            RuntimeException ex = assertThrows(RuntimeException.class, trace::release);
            assertTrue(ex.getMessage() != null && ex.getMessage().contains("Usage count dropped below zero"));
        }
    
        @Test
        @DisplayName("getTreeId(): no tree returns -1")
        void getTreeId_noTree_returnsMinusOne() {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacCredentialTypeTest.java

            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> new PacCredentialType(null));
            assertEquals("Invalid PAC credential type", exception.getMessage());
        }
    
        /**
         * Tests the constructor with a byte array that is too large.
         */
        @Test
        void testConstructorWithDataTooLarge() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

            byte[] emptyToken = new byte[0];
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new KerberosTicket(emptyToken, (byte) 0, keys));
            assertEquals("Empty kerberos ticket", e.getMessage());
        }
    
        @Test
        void testConstructorWithMalformedToken() {
            // Test that PACDecodingException is thrown for a malformed token
            byte[] malformedToken = new byte[] { 0x01, 0x02, 0x03 };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                                .setMessage("Malformed POM " + modelSource.getLocation() + ": " + e.getMessage())
                                .setException(e));
                    } else {
                        problems.add(new ModelProblemCollectorRequest(Severity.WARNING, Version.V20)
                                .setMessage("Malformed POM " + modelSource.getLocation() + ": " + e.getMessage())
                                .setException(e));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:08 UTC 2025
    - 55.3K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be Object#equals to", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testClassWhichIsAlwaysEqualButHasDifferentHashcodes() {
        ClassWhichIsAlwaysEqualButHasDifferentHashcodes orig =
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top