- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testGetErrorCode (0.81 sec)
-
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
assertEquals(cause, exception.getRootCause(), "getRootCause() should return the same cause as getCause()."); } /** * Test getErrorCode() method. */ @Test void testGetErrorCode() { int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED DcerpcException exception = new DcerpcException(errorCode);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
assertEquals(100, mockResponse.getGrantedCredits()); // Verify the method was called verify(mockResponse, times(1)).getGrantedCredits(); } @Test void testGetErrorCode() { // Simulate error code when(mockResponse.getErrorCode()).thenReturn(-1); assertEquals(-1, mockResponse.getErrorCode()); // Verify the method was called
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
} } @Nested @DisplayName("Error Code Tests") class ErrorCodeTests { @Test @DisplayName("Should return status as error code") void testGetErrorCode() { int status = NtStatus.NT_STATUS_ACCESS_DENIED; response.setStatusForTest(status); assertEquals(status, response.getErrorCode()); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
} } @Nested @DisplayName("Error Code Tests") class ErrorCodeTests { @Test @DisplayName("Should get error code from status") void testGetErrorCode() throws Exception { int status = NtStatus.NT_STATUS_ACCESS_DENIED; setStatus(echoResponse, status); assertEquals(status, echoResponse.getErrorCode()); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
assertEquals(expectedCredits, actualCredits); verify(response).getGrantedCredits(); } @Test @DisplayName("Test Response interface methods - getErrorCode") void testGetErrorCode() { // Given int expectedErrorCode = 0xC0000001; when(response.getErrorCode()).thenReturn(expectedErrorCode); // When int actualErrorCode = response.getErrorCode();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0)