Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testShort (0.04 sec)

  1. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

        /**
         * Test basic session lifecycle management
         */
        @Test
        @Timeout(5)
        public void testSessionLifecycle() throws Exception {
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            // Test initial state - session starts with usage count > 0 due to transport.acquire()
            assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

         */
        @Test
        public void testConcurrentTreeOperationsThreadSafe() throws Exception {
            // Given
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            int threadCount = 10;
            int opsPerThread = 100;
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            SmbTransportImpl mockTransport = Mockito.mock(SmbTransportImpl.class);
            Mockito.when(mockTransport.acquire()).thenReturn(mockTransport);
    
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            int threadCount = 10;
            int operationsPerThread = 200;
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top