Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for getNextResponse (0.18 seconds)

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

        }
    
        @Test
        @DisplayName("Test getNextResponse method returning null")
        void testGetNextResponseReturningNull() {
            // Given
            when(response.getNextResponse()).thenReturn(null);
    
            // When
            CommonServerMessageBlockResponse actual = response.getNextResponse();
    
            // Then
            assertNull(actual);
            verify(response).getNextResponse();
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

            super(config);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockResponse#getNextResponse()
         */
        @Override
        public CommonServerMessageBlockResponse getNextResponse() {
            return (CommonServerMessageBlockResponse) getNext();
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/util/transport/ResponseTest.java

            Response nextResponseMock = mock(Response.class);
            when(mockResponse.getNextResponse()).thenReturn(nextResponseMock);
            assertEquals(nextResponseMock, mockResponse.getNextResponse());
    
            // Test null next response
            when(mockResponse.getNextResponse()).thenReturn(null);
            assertNull(mockResponse.getNextResponse());
    
            // Verify the method was called
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/transport/Response.java

         * @param e the exception to set
         */
        void exception(Exception e);
    
        /**
         * Gets the next response in the chain.
         *
         * @return chained response
         */
        Response getNextResponse();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/NotifyResponseTest.java

            assertTrue(response.isAsync());
    
            // Test next response property
            assertNull(response.getNextResponse());
            MockNotifyResponse nextResponse = new MockNotifyResponse(Collections.emptyList());
            response.setNextResponse(nextResponse);
            assertEquals(nextResponse, response.getNextResponse());
    
            // Test prepare method (should not throw exception)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/CommonServerMessageBlockResponse.java

         *
         * @return is an async response
         */
        boolean isAsync();
    
        /**
         *
         * @return the next response
         */
        @Override
        CommonServerMessageBlockResponse getNextResponse();
    
        /**
         * Prepares this response for the next request.
         *
         * @param next the next request to prepare for
         */
        void prepare(CommonServerMessageBlockRequest next);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            assertFalse((boolean) isReceivedMethod.invoke(response));
        }
    
        @Test
        @DisplayName("Should handle getNextResponse correctly")
        void testGetNextResponse() {
            // When
            CommonServerMessageBlockResponse nextResponse = response.getNextResponse();
    
            // Then - should return null as no next response is set
            assertEquals(null, nextResponse);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            return this.andx;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockResponse#getNextResponse()
         */
        @Override
        public ServerMessageBlock getNextResponse() {
            return this.andx;
        }
    
        /**
         * Gets the batch limit for chained commands
         * @param cfg the configuration
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/RequestTest.java

            @Override
            public boolean isAsync() {
                return async;
            }
    
            @Override
            public CommonServerMessageBlockResponse getNextResponse() {
                return nextResponse;
            }
    
            @Override
            public void prepare(CommonServerMessageBlockRequest next) {
                // No-op for test
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockResponse#getNextResponse()
         */
        @Override
        public CommonServerMessageBlockResponse getNextResponse() {
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 38.9K bytes
    - Click Count (0)
Back to Top