- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MockNdrBuffer (0.07 sec)
-
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
NdrSmall ndrSmall = new NdrSmall(100); // Call the encode method ndrSmall.encode(mockNdrBuffer); // Verify that enc_ndr_small was called with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_small(100); verifyNoMoreInteractions(mockNdrBuffer); } @Test void testDecode() throws NdrException { // Define the value that dec_ndr_small should return
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java
verify(dcerpcSecurityProvider, times(1)).wrap(mockNdrBuffer); } @Test void testWrapMethodThrowsDcerpcException() throws DcerpcException { // Configure the mock to throw DcerpcException when wrap is called doThrow(new DcerpcException("Test wrap exception")).when(dcerpcSecurityProvider).wrap(mockNdrBuffer); // Assert that calling wrap throws DcerpcException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
when(mockNdrBuffer.dec_ndr_hyper()).thenReturn(decodedValue); // Call the decode method with the mocked NdrBuffer ndrHyper.decode(mockNdrBuffer); // Verify that dec_ndr_hyper was called exactly once verify(mockNdrBuffer, times(1)).dec_ndr_hyper(); verifyNoMoreInteractions(mockNdrBuffer);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java
// Call the encode method ndrLong.encode(mockNdrBuffer); // Verify that enc_ndr_long was called exactly once with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_long(testValue); // Verify that no other interactions occurred with the mock buffer verifyNoMoreInteractions(mockNdrBuffer); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0)