Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TESTSCOPE (0.05 sec)

  1. src/test/java/jcifs/NameServiceClientTest.java

        }
    
        @Test
        void testGetNbtAllByAddress_StringIntString() throws UnknownHostException {
            // Arrange
            String host = "testHost";
            int type = 0x20;
            String scope = "testScope";
            NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) };
            when(nameServiceClient.getNbtAllByAddress(host, type, scope)).thenReturn(expectedAddresses);
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/NetbiosNameTest.java

        @DisplayName("Should handle getScope() method")
        void testGetScope() {
            // Given
            String testScope = "WORKGROUP";
            when(mockNetbiosName.getScope()).thenReturn(testScope);
    
            // When
            String scope = mockNetbiosName.getScope();
    
            // Then
            assertEquals(testScope, scope);
            verify(mockNetbiosName).getScope();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top