Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 88 for Act (0.05 sec)

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

            // Arrange
            SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\test");
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
            // Act
            SmbTreeHandleInternal t1 = handle.ensureTreeConnected();
            SmbTreeHandleInternal t2 = handle.ensureTreeConnected();
    
            // Assert
            assertSame(tree, t1, "First acquire returns provided tree");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            setTree(c, tree);
    
            // Act: first acquire triggers tree.acquire()
            c.acquire();
            verify(tree, times(1)).acquire();
    
            // Act: second acquire does not call tree.acquire again
            c.acquire();
            verify(tree, times(1)).acquire();
    
            // Act: first release does not release yet (usage -> 1)
            c.release();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SSPContextTest.java

                DummySSPContext ctx =
                        new DummySSPContext(new byte[] { 1, 2, 3 }, true, "NBHOST", new ASN1ObjectIdentifier[] { mech1, mech2 }, 0xA5, true);
    
                // Act & Assert
                assertArrayEquals(new byte[] { 1, 2, 3 }, ctx.getSigningKey(), "signing key");
                assertTrue(ctx.isEstablished(), "should be established");
    
                byte[] in = new byte[] { 9, 8, 7, 6 };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

                        throw new SmbException(NtStatus.NT_STATUS_NO_MORE_FILES, false);
                    }
                }
                return null;
            }).when(tree).send(any(Request.class));
    
            // Act: create iterator and enumerate
            DirFileEntryEnumIterator2 it = new DirFileEntryEnumIterator2(tree, parent, wildcard, (ResourceNameFilter) null, 0);
    
            // Assert: first page
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

                String path = dir.getPath();
                // Accept files in /share/folder/ that are text files
                return path.equals("/share/folder/") && name != null && name.endsWith(".txt");
            };
    
            // Act & Assert: test with different file names
            assertTrue(filter.accept(mockDir, "document.txt"), "Should accept .txt files in the correct path");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/io/IOIntegrationTest.java

            // ## Arrange ##
            CurlRequest req = new MockCurlRequest(Curl.Method.POST, "http://dummy");
            req.threshold(0); // always create tmp file
    
            // ## Act ##
            long before = countTmpFiles();
            logger.info("Before request. Number of temp files: " + before);
            req.execute(res -> {
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Sat May 10 01:44:04 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                byte[] buf = new byte[16];
    
                // Skip advances internal file pointer; next read should use this offset
                in.skip(2);
    
                // Act
                int n = in.readDirect(buf, 0, 5);
    
                // Assert
                assertEquals(3, n, "Should report bytes read from SMB2 response");
    
                // Verify the request offset equals the skip value (2)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            JAASAuthenticator auth = spy(new JAASAuthenticator());
            // Avoid real JAAS by stubbing getSubject
            doReturn(new Subject()).when(auth).getSubject();
    
            // Act
            CredentialsInternal result = auth.renew();
    
            // Assert interaction and return value
            assertSame(auth, result);
            verify(auth, times(1)).getSubject();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/EncodableTest.java

            // Destination has guard space to verify non-overwritten regions.
            byte[] dst = new byte[dstIndex + len + 5];
            Arrays.fill(dst, (byte) 0x55);
    
            // Act
            int written = enc.encode(dst, dstIndex);
    
            // Assert: reported written bytes matches size() and requested len.
            assertEquals(len, enc.size(), "size() must equal provided length");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

                }
                resp.received();
                return resp;
            });
    
            DirFileEntryEnumIterator1 it = new DirFileEntryEnumIterator1(tree, parent, "*", null, 0);
    
            // Act & Assert: entries a, b, c (dot entries filtered) then end
            assertTrue(it.hasNext());
            assertEquals("a", it.next().getName());
            assertTrue(it.hasNext());
            assertEquals("b", it.next().getName());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top