Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for testable (0.96 sec)

  1. docs/smb3-features/04-directory-leasing-design.md

        
        SmbFile dir = new SmbFile("smb://server/share/testdir/", context);
        SmbFile testFile = new SmbFile("smb://server/share/testdir/newfile.txt", context);
        
        // Get initial listing (establishes cache)
        SmbFile[] initialFiles = dir.listFiles();
        
        // Create new file
        testFile.createNewFile();
        
        // Wait for change notification
        Thread.sleep(2000);
        
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

        @Mock
        private Configuration mockConfig;
    
        private static final int TEST_SID = 0x1234;
        private static final int TEST_RESUME_KEY = 0xABCD;
        private static final String TEST_FILENAME = "testfile.txt";
        private static final int TEST_BATCH_COUNT = 100;
        private static final int TEST_BATCH_SIZE = 8192;
    
        @BeforeEach
        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

        void testReadParametersWireFormatWithVariousActions(int action) throws Exception {
            byte[] buffer = createSingleNotificationBuffer("testfile.dat", action);
    
            int result = response.readParametersWireFormat(buffer, 0, buffer.length);
    
            assertTrue(result > 0);
            List<FileNotifyInformation> notifications = response.getNotifyInformation();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SecurityBlobTest.java

            String actual = blob.toString();
    
            // Assert
            assertEquals(expected, actual, "Hex string should match expected format");
        }
    
        // Ensures a default-constructed blob starts empty and stable across APIs
        @Test
        @DisplayName("Default constructor yields empty state")
        void defaultConstructor_initialState() {
            // Arrange & Act
            SecurityBlob blob = new SecurityBlob();
    
            // Assert
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

        class PerformanceTests {
    
            @RepeatedTest(value = 10, name = "Repeated encoding/decoding stability test {currentRepetition}/{totalRepetitions}")
            @DisplayName("Encoding and decoding is stable across multiple iterations")
            void testEncodingDecodingStability() throws Exception {
                ASN1ObjectIdentifier[] mechs = new ASN1ObjectIdentifier[] { OID_KRB, OID_NTLM };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            @Test
            @DisplayName("Should write lock sequence information correctly")
            void testLockSequenceInformation() {
                // Note: lockSequenceNumber and lockSequenceIndex are private and not settable
                // They default to 0, so we test the default encoding
                byte[] buffer = new byte[256];
                request.writeBytesWireFormat(buffer, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            SmbResourceLocatorImpl b = locator("smb://server/share/");
            assertEquals("smb://server/", b.getParent());
        }
    
        @Test
        @DisplayName("Canonical and UNC paths are computed and stable")
        void testCanonicalAndUNCPaths() {
            SmbResourceLocatorImpl a = locator("smb://server/share/dir/.././file");
            // canonicalization removes . and resolves ..
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            for (int attempt = 0; attempt < 90; attempt++) {
                try {
                    SmbFile testFile = new SmbFile(baseUrl + "shared/", context);
                    testFile.exists(); // Simple connectivity test
                    log.info("SMB server is ready after {} attempts", attempt + 1);
                    return;
                } catch (Exception e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            void testReadRequestWithRdmaChannel() {
                request.setReadLength(65536);
                request.setOffset(0L);
                // Note: channel is private and not settable via public API
                // This test documents that channel defaults to SMB2_CHANNEL_NONE
    
                byte[] buffer = new byte[256];
                request.writeBytesWireFormat(buffer, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
Back to top