Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for TestMessage (0.04 seconds)

  1. src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java

         * Ensures that the exception is created with the correct message.
         */
        @Test
        void testConstructorWithMessage() {
            String testMessage = "This is a test message for NdrException.";
            NdrException exception = new NdrException(testMessage);
            assertEquals(testMessage, exception.getMessage(), "The exception message should match the input message.");
        }
    
        /**
         * Test the NO_NULL_REF static field.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java

            buf.enc_ndr_small(4); // bad major
            buf.enc_ndr_small(0);
            TestMessage msg = new TestMessage();
            assertThrows(NdrException.class, () -> msg.decode_header(buf));
        }
    
        @Test
        void testRoundTripEncodeDecodeForRequestType() throws Exception {
            TestMessage m = new TestMessage();
            m.ptype = 0; // Request type
            NdrBuffer buf = new NdrBuffer(new byte[1024], 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHookTest.java

        }
    
        // Test API result with messages
        @Test
        public void test_apiResultWithMessages() {
            String testMessage = "Test error message";
            ApiResult.ApiErrorResponse errorResponse = new ApiResult.ApiErrorResponse();
            errorResponse.message(testMessage);
            errorResponse.status(Status.BAD_REQUEST);
            ApiResult result = errorResponse.result();
    
            assertNotNull(result);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 7.2K bytes
    - Click Count (0)
Back to Top