Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 556 for bundle (0.03 sec)

  1. src/test/java/jcifs/internal/AllocInfoTest.java

            @Test
            @DisplayName("Should handle zero values")
            void shouldHandleZeroValues() {
                // Given
                TestAllocInfo allocInfo = new TestAllocInfo(0L, 0L);
    
                // When & Then
                assertEquals(0L, allocInfo.getCapacity());
                assertEquals(0L, allocInfo.getFree());
            }
    
            @Test
            @DisplayName("Should handle maximum long values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various status codes")
        void testVariousStatusCodes(int status) {
            response.setStatusForTest(status);
            assertEquals(status, response.getErrorCode());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 10, 100, 255 })
        @DisplayName("Should handle various credit values")
        void testVariousCreditValues(int credits) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtStatusTest.java

            assertNotNull(messages[0]);
            assertTrue(messages[0].toLowerCase().contains("success") || messages[0].toLowerCase().contains("completed"));
        }
    
        @Test
        @DisplayName("Should handle access denied status")
        void testAccessDeniedStatus() {
            // Given
            int status = NtStatus.NT_STATUS_ACCESS_DENIED;
    
            // When/Then
            assertEquals((int) 0xC0000022L, status);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                configField.setAccessible(true);
                assertEquals(mockConfig, configField.get(request));
            }
    
            @Test
            @DisplayName("Should handle null configuration")
            void testConstructorWithNullConfig() {
                assertDoesNotThrow(() -> {
                    Smb2EchoRequest request = new Smb2EchoRequest(null);
                    assertNotNull(request);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Just verify that contexts were written
            assertTrue(bytesWritten > 60); // Should be larger than basic negotiate request
        }
    
        @Test
        @DisplayName("Should handle empty negotiate contexts array")
        void testWriteBytesWireFormatEmptyContexts() {
            // Given
            when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB302);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

         * @throws SmbException
         */
        synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
            if (this.handle == null || !this.handle.isValid()) {
                // one extra acquire to keep this open till the stream is released
                if (this.file instanceof SmbNamedPipe) {
                    this.handle = this.file.openUnshared(SmbConstants.O_EXCL, ((SmbNamedPipe) this.file).getPipeType() & 0xFF0000, this.sharing,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java

    import jcifs.internal.smb2.create.CreateContextResponse;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Durable Handle V2 Response Create Context
     *
     * MS-SMB2 Section 2.2.14.2.4
     */
    public class DurableHandleV2Response implements CreateContextResponse {
    
        /**
         * Context name for durable handle V2 response
         */
        public static final String CONTEXT_NAME = "DH2Q";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

         * @throws CIFSException if an error occurs connecting to the tree
         */
        SmbTreeHandleInternal ensureTreeConnected() throws CIFSException;
    
        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return file handle
         * @throws CIFSException if an error occurs opening the file
         */
        SmbFileHandle ensureOpen() throws CIFSException;
    
        /**
         * Receive data from the pipe
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            @Test
            @DisplayName("Should handle null buffer in decode")
            void testNullBuffer() {
                FileFsSizeInformation info = new FileFsSizeInformation();
    
                assertThrows(NullPointerException.class, () -> {
                    info.decode(null, 0, 0);
                });
            }
    
            @Test
            @DisplayName("Should handle insufficient buffer length")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // When
            int bytesWritten = response.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(0, bytesWritten);
        }
    
        @Test
        @DisplayName("Should handle error response structure size 9")
        void testReadBytesWireFormatErrorResponse() throws Exception {
            // Given
            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top