Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MOCKNAME (0.03 sec)

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

            mockName = new Name(mockConfig, "DOMAIN", 0x1C, null); // Domain Controller
            nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            assertEquals(NbtAddress.SMBSERVER_NAME, nbtAddress.firstCalledName());
    
            mockName = new Name(mockConfig, "DOMAIN", 0x1D, null); // Master Browser
            nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            mockName.hexCode = 0x20;
            mockName.name = "TEST";
            mockName.scope = "test.scope";
        }
    
        @Test
        void constructor_shouldInitializeFieldsCorrectly() throws Exception {
            // Act
            nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName);
    
            // Assert
            assertSame(mockName, nodeStatusRequest.questionName);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameQueryRequestTest.java

        private Configuration mockConfig;
        @Mock
        private Name mockName;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
        }
    
        @Test
        void testConstructor() {
            // Test that the constructor correctly initializes questionName and questionType
            NameQueryRequest request = new NameQueryRequest(mockConfig, mockName);
    
            assertNotNull(request);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
    
            // Setup mock query address
            mockQueryAddress = mock(NbtAddress.class);
            Name mockName = new Name(mockConfig, "TEST", 0x20, null);
            mockQueryAddress.hostName = mockName;
            // Convert IP address to int representation for NbtAddress
            InetAddress inetAddr = InetAddress.getByName("192.168.1.100");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NameTest.java

            when(mockNetbiosName.getName()).thenReturn("MOCKNAME");
            when(mockNetbiosName.getNameType()).thenReturn(0x20);
            when(mockNetbiosName.getScope()).thenReturn("mock.scope");
    
            Name name = new Name(mockConfig, mockNetbiosName);
    
            assertEquals("MOCKNAME", name.name);
            assertEquals(0x20, name.hexCode);
            assertEquals("mock.scope", name.scope);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top