Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 878 for Verify (0.13 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                    buffer.encode(dst, 0);
    
                    // Verify SMBUtil.writeInt2 was called for referral level (with long parameter)
                    mockedSMBUtil.verify(() -> SMBUtil.writeInt2(eq((long) maxReferralLevel), any(byte[].class), eq(0)));
                    // Verify SMBUtil.writeInt2 was called for null terminator
                    mockedSMBUtil.verify(() -> SMBUtil.writeInt2(eq(0L), any(byte[].class), anyInt()));
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            } catch (Exception e) {
                // It's ok if it fails, we just want to verify reset was called
            }
    
            // Request/response reset should happen on retry
            verify(req, atLeastOnce()).reset();
            verify(resp, atLeastOnce()).reset();
            // Verify disconnect was called on retry
            verify(c, atLeastOnce()).disconnect(eq(true));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            // Verify resumeKey (4 bytes)
            assertEquals(TEST_RESUME_KEY, SMBUtil.readInt4(buffer, 6));
    
            // Verify tflags (2 bytes) - should be 0x00
            assertEquals(0x00, SMBUtil.readInt2(buffer, 10));
    
            // Verify filename
            String actualFilename = readString(buffer, 12, written - 12);
            assertEquals(TEST_FILENAME, actualFilename);
    
            // Verify total bytes written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            response = new TransTransactNamedPipeResponse(mockConfig, outputBuffer);
        }
    
        @Test
        void testConstructor() {
            // Verify that the response is created with correct configuration and buffer
            assertNotNull(response);
    
            // Use reflection to verify the outputBuffer is set correctly
            try {
                Field outputBufferField = TransTransactNamedPipeResponse.class.getDeclaredField("outputBuffer");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/CloseableIteratorTest.java

    package jcifs;
    
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.verify;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    /**
     * Test class for CloseableIterator interface functionality
     */
    @DisplayName("CloseableIterator Tests")
    class CloseableIteratorTest extends BaseTest {
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
  6. cmd/xl-storage_unix_test.go

    		t.Fatalf("Initializing xlStorage failed with %s.", err)
    	}
    
    	// Attempt to create a volume to verify the permissions later.
    	// MakeVol creates directory with 0777 perms.
    	if err = disk.MakeVol(t.Context(), testCase.volName); err != nil {
    		t.Fatalf("Creating a volume failed with %s expected to pass.", err)
    	}
    
    	// Attempt to create a file to verify the permissions later.
    	// AppendFile creates file with 0666 perms.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            assertFalse(iterator.hasNext(), "Should not have more elements");
    
            // Then
            verify(mockDelegate, times(3)).next();
            verify(mockFilter).accept(mockResource1);
            verify(mockFilter).accept(mockResource2);
            verify(mockFilter).accept(mockResource3);
        }
    
        /**
         * Test that adapt method is actually used by the iterator.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbSessionImplTest.java

            verify(transport, times(1)).acquire();
        }
    
        @Test
        @DisplayName("close/release manage usage and transport lifecycle")
        void testReleaseLifecycle() {
            SmbSessionImpl session = newSession();
    
            // First release drops usage to zero and releases transport
            session.release();
            verify(transport, times(1)).release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                // Verify source offset
                assertEquals(sourceOffset, SMBUtil.readInt8(buffer, startIndex));
    
                // Verify target offset
                assertEquals(targetOffset, SMBUtil.readInt8(buffer, startIndex + 8));
    
                // Verify length
                assertEquals(length, SMBUtil.readInt4(buffer, startIndex + 16));
    
                // Verify reserved bytes are zeros
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

            int dstIndex = 5; // Start at offset 5
            int bytesEncoded = fileInternalInfo.encode(destinationBuffer, dstIndex);
    
            // Verify
            assertEquals(8, bytesEncoded);
            assertEquals(expectedIndexNumber, SMBUtil.readInt8(destinationBuffer, dstIndex));
    
            // Verify surrounding bytes are untouched
            for (int i = 0; i < dstIndex; i++) {
                assertEquals(0, destinationBuffer[i]);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top