Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for testShort (1.57 sec)

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

            // Test the constructor with minimal parameters
            mockName = new Name(mockConfig, "TESTHOST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
    
            assertNotNull(nbtAddress);
            assertEquals("TESTHOST", nbtAddress.getHostName());
            assertArrayEquals(new byte[] { (byte) 192, (byte) 168, (byte) 1, (byte) 1 }, nbtAddress.getAddress());
    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/smb1/smb1/SmbTreeTest.java

        private SmbTransport transport;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Setup transport fields that are accessed directly
            transport.tconHostName = "testHost";
            // Setup session.transport field (accessed directly in SmbTree)
            session.transport = transport;
            // Setup session to return transport via method call
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbTransportTest.java

            verify(smbTransport).getRemoteAddress(); // Verify that the method was called
        }
    
        @Test
        void testGetRemoteHostName() {
            // Arrange
            String hostName = "testHost";
            when(smbTransport.getRemoteHostName()).thenReturn(hostName);
    
            // Act
            String result = smbTransport.getRemoteHostName();
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

     */
    public class RdmaIntegrationTest {
    
        private String testServer;
        private int testPort;
        private CIFSContext testContext;
    
        @BeforeEach
        public void setUp() throws Exception {
            testServer = System.getProperty("rdma.test.server");
            String portStr = System.getProperty("rdma.test.port", "445");
            testPort = Integer.parseInt(portStr);
    
            // Create RDMA-enabled context
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java

            assertEquals(25, ESSourceReader.getLimitDocNum(50, 50, -1));
            assertEquals(10, ESSourceReader.getLimitDocNum(50, 50, 10));
        }
    
        @Test
        public void test_sort() throws Exception {
            String indexName = "test-index";
            Client client = runner.client();
            SuggestSettings settings = suggester.settings();
            int num = 10000;
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            // Set newInputs to non-empty array - not deleted
            item.setNewInputs(new String[] { "something" });
            assertFalse(item.isDeleted());
        }
    
        public void test_sort() {
            String[] inputs = { "z", "a", "m" };
            String[] newInputs = { "9", "1", "5" };
    
            CharMappingItem item = new CharMappingItem(1L, inputs, "output");
            item.setNewInputs(newInputs);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/config/DelegatingConfigurationTest.java

        void testStringConfigurationDelegation() {
            // Given
            when(mockDelegate.getOemEncoding()).thenReturn("UTF-8");
            when(mockDelegate.getNetbiosHostname()).thenReturn("TESTHOST");
            when(mockDelegate.getDefaultDomain()).thenReturn("WORKGROUP");
            when(mockDelegate.getDefaultUsername()).thenReturn("testuser");
            when(mockDelegate.getDefaultPassword()).thenReturn("testpass");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/PropertyConfigurationTest.java

            props.setProperty("jcifs.smb.client.password", "testpass");
            props.setProperty("jcifs.smb.client.domain", "testdomain");
            props.setProperty("jcifs.netbios.hostname", "testhost");
            props.setProperty("jcifs.netbios.scope", "");
            props.setProperty("jcifs.smb.client.connTimeout", "35000");
            props.setProperty("jcifs.smb.client.soTimeout", "35000");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            when(mockConfig.getResolveOrder()).thenReturn(Arrays.asList(ResolverType.RESOLVER_DNS)); // Only DNS, no broadcast
            when(mockConfig.getNetbiosHostname()).thenReturn("TESTHOST");
            when(mockConfig.getNetbiosScope()).thenReturn(null);
            when(mockConfig.getNetbiosCachePolicy()).thenReturn(30); // Short cache
            when(mockConfig.getWinsServers()).thenReturn(new InetAddress[0]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/PreauthIntegrityTest.java

            when(config.getSessionTimeout()).thenReturn(30_000);
            when(config.getResponseTimeout()).thenReturn(5_000);
            when(address.getHostAddress()).thenReturn("127.0.0.1");
            when(address.getHostName()).thenReturn("testhost");
    
            transport = new SmbTransportImpl(context, address, 445, null, 0, false);
        }
    
        /**
         * Test that pre-auth integrity hash is properly synchronized
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top