Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for setResults (0.58 sec)

  1. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

            // Test with null entries
            response.setResults(null);
            assertNull(response.getResults());
    
            // Test with empty entries
            FileEntry[] emptyEntries = new FileEntry[0];
            response.setResults(emptyEntries);
            assertSame(emptyEntries, response.getResults());
            assertEquals(0, response.getResults().length);
    
            // Test with multiple entries
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

                    // Provide a query response with two entries
                    Smb2QueryDirectoryResponse qr = new Smb2QueryDirectoryResponse(config, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
                    setResults(qr, new FileEntry[] { fe1, fe2 });
                    q.setResponse(qr);
                    return cr;
                }
                if (arg instanceof Smb2QueryDirectoryRequest) {
                    queryCount[0]++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

         * @return the results
         */
        public final FileEntry[] getResults() {
            return this.results;
        }
    
        /**
         * Sets the file entry results for the response
         * @param results
         *            the results to set
         */
        protected final void setResults(final FileEntry[] results) {
            this.results = results;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            assertNull(response.getResults()); // Should be null before decoding
        }
    
        @Test
        @DisplayName("Test getResults returns null initially")
        void testGetResultsInitiallyNull() {
            response = new Smb2QueryDirectoryResponse(mockConfig, (byte) 0x03);
    
            assertNull(response.getResults());
        }
    
        @Test
        @DisplayName("Test getResults returns decoded file entries")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            field.setAccessible(true);
            field.setInt(response, value);
        }
    
        private FileEntry[] getResults(NetShareEnumResponse response) throws Exception {
            Method method = getSuperclassMethod(response.getClass(), "getResults");
            method.setAccessible(true);
            return (FileEntry[]) method.invoke(response);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * it.
         */
        setResult(transformResult);
      }
    
      /** Template method for subtypes to actually run the transform. */
      @ForOverride
      @ParametricNullness
      abstract T doTransform(F function, @ParametricNullness I result) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
      abstract void setResult(@ParametricNullness T result);
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

            field.setAccessible(true);
            field.setInt(response, value);
        }
    
        private FileEntry[] getResults(NetServerEnum2Response response) throws Exception {
            Method method = getSuperclassMethod(response.getClass(), "getResults");
            method.setAccessible(true);
            return (FileEntry[]) method.invoke(response);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * it.
         */
        setResult(transformResult);
      }
    
      /** Template method for subtypes to actually run the transform. */
      @ForOverride
      @ParametricNullness
      abstract T doTransform(F function, @ParametricNullness I result) throws Exception;
    
      /** Template method for subtypes to actually set the result. */
      @ForOverride
      abstract void setResult(@ParametricNullness T result);
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            // Test numEntries property - getNumEntries() is public
            assertEquals(0, response.getNumEntries());
    
            // Test results property (should be null initially) - getResults() is public
            assertNull(response.getResults());
        }
    
        @Test
        @DisplayName("Test buffer management")
        void testBufferManagement() {
            // Test buffer setting and releasing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbEnumerationUtil.java

            th.send(req, resp);
            if (resp.getStatus() != WinError.ERROR_SUCCESS) {
                throw new SmbException(resp.getStatus(), true);
            }
    
            return resp.getResults();
        }
    
        static CloseableIterator<SmbResource> doShareEnum(final SmbFile parent, final String wildcard, final int searchAttributes,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top