Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getErrorString (2 sec)

  1. src/test/java/jcifs/netbios/NbtExceptionTest.java

            assertEquals(NbtException.getErrorString(errorClass, errorCode), exception.getMessage(),
                    "Exception message should match getErrorString output");
            assertTrue(exception instanceof CIFSException, "NbtException should be an instance of CIFSException");
        }
    
        /**
         * Test the getErrorString method with various error classes and codes to ensure all branches are covered.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

    @DisplayName("NbtException Tests")
    class NbtExceptionTest {
    
        @Test
        @DisplayName("getErrorString success returns SUCCESS")
        void testSuccess() {
            assertEquals("SUCCESS", NbtException.getErrorString(NbtException.SUCCESS, 0));
        }
    
        @Test
        @DisplayName("getErrorString for name service error with known code")
        void testNameServiceKnown() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/netbios/NbtException.java

        public NbtException(final int errorClass, final int errorCode) {
            super(getErrorString(errorClass, errorCode));
            this.errorClass = errorClass;
            this.errorCode = errorCode;
        }
    
        @Override
        public String toString() {
            return ("errorClass=" + errorClass + ",errorCode=" + errorCode + ",errorString=" + getErrorString(errorClass, errorCode));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NbtException.java

            super(getErrorString(errorClass, errorCode));
            this.errorClass = errorClass;
            this.errorCode = errorCode;
        }
    
        @Override
        public String toString() {
            return ("errorClass=" + this.errorClass + ",errorCode=" + this.errorCode + ",errorString="
                    + getErrorString(this.errorClass, this.errorCode));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top