Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for isReceived (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            @Test
            @DisplayName("Should track received state")
            void testReceivedState() {
                assertFalse(echoResponse.isReceived());
    
                echoResponse.received();
    
                assertTrue(echoResponse.isReceived());
            }
    
            @Test
            @DisplayName("Should track error state")
            void testErrorState() {
                assertFalse(echoResponse.isError());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/ResponseTest.java

            assertFalse(mockResponse.isReceived());
    
            // Simulate received status
            when(mockResponse.isReceived()).thenReturn(true);
            assertTrue(mockResponse.isReceived());
    
            // Verify the method was called
            verify(mockResponse, times(2)).isReceived();
        }
    
        @Test
        void testReceived() {
            // Call the method
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

            void testReset() {
                // Set initial state
                response.received();
                assertTrue(response.isReceived());
    
                // Reset
                response.reset();
    
                assertFalse(response.isReceived());
            }
    
            @Test
            @DisplayName("Should handle received notification")
            void testReceived() throws InterruptedException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        void watch_smb2_success_returnsList_andClosesTree() throws Exception {
            List<FileNotifyInformation> info = new ArrayList<>();
            NotifyResponse resp = mock(NotifyResponse.class);
            when(resp.isReceived()).thenReturn(true);
            when(resp.getErrorCode()).thenReturn(0);
            when(resp.getNotifyInformation()).thenReturn(info);
            setupSmb2(resp, new byte[16]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        }
    
        @Test
        @DisplayName("Test Response interface methods - isReceived")
        void testIsReceived() {
            // Given
            when(response.isReceived()).thenReturn(true);
    
            // When
            boolean received = response.isReceived();
    
            // Then
            assertTrue(received);
            verify(response).isReceived();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeImpl.java

                    chainedResponse = treeConnect(request, response);
                }
                if (request == null || chainedResponse != null && chainedResponse.isReceived()) {
                    return chainedResponse;
                }
    
                // fall trough if the tree connection is already established
                // and send it as a separate request instead
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            @Test
            @DisplayName("Test received state")
            void testReceivedState() {
                assertFalse(testBlock.isReceived());
    
                testBlock.received();
                assertTrue(testBlock.isReceived());
    
                testBlock.clearReceived();
                assertFalse(testBlock.isReceived());
            }
    
            @Test
            @DisplayName("Test exception state")
            void testExceptionState() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/transport/Response.java

     */
    public interface Response extends Message {
    
        /**
         * Checks if the response has been received.
         *
         * @return whether the response is received
         */
        boolean isReceived();
    
        /**
         * Set received status
         */
        void received();
    
        /**
         * Unset received status
         */
        void clearReceived();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/transport/Transport.java

            makeKey(request);
            response.isReceived = false;
            try {
                response_map.put(request, response);
                doSend(request);
                response.expiration = System.currentTimeMillis() + timeout;
                while (!response.isReceived) {
                    wait(timeout);
                    timeout = response.expiration - System.currentTimeMillis();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/transport/Response.java

        /**
         * The expiration time for this response in milliseconds.
         */
        public long expiration;
        /**
         * Flag indicating whether this response has been received.
         */
        public boolean isReceived;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 557 bytes
    - Viewed (0)
Back to top