Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for isUnknown (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/netbios/Name.java

            }
        }
    
        /**
         * Checks if this represents an unknown address.
         *
         * @return whether this is the unknown address
         */
        public boolean isUnknown() {
            return "0.0.0.0".equals(this.name) && this.hexCode == 0 && this.scope == null;
        }
    
        int writeWireFormat(final byte[] dst, final int dstIndex) {
            // write 0x20 in first byte
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/NameTest.java

            Name name = new Name(mockConfig, "0.0.0.0", 0, null);
            name.scope = null;
            assertTrue(name.isUnknown());
        }
    
        @Test
        void isUnknown_withNormalName_shouldReturnFalse() {
            Name name = new Name(mockConfig, "TestName", 0x20, null);
            assertFalse(name.isUnknown());
        }
    
        @Test
        void isUnknown_withNonZeroHexCode_shouldReturnFalse() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

        @Test
        void readRDataWireFormat_shouldHandleUnknownQueryAddress() throws Exception {
            // Setup queryAddress with unknown name
            Name unknownName = mock(Name.class);
            lenient().when(unknownName.isUnknown()).thenReturn(true);
            unknownName.hexCode = 0x20;
            unknownName.scope = null;
            mockQueryAddress.hostName = unknownName;
    
            response = new NodeStatusResponse(mockConfig, mockQueryAddress);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.3K bytes
    - Click Count (0)
Back to Top