Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestMessage (0.55 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                testMessage.setSessionId(123L);
                testMessage.setTreeId(456);
    
                testMessage.reset();
    
                assertEquals(0, testMessage.getFlags());
                assertNull(testMessage.getDigest());
                assertEquals(0, testMessage.getSessionId());
                assertEquals(0, testMessage.getTreeId());
            }
        }
    
        @Nested
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (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);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. 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.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
Back to top