Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 3,812 for new3 (0.02 sec)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        @Test
        void decodeFromEncodedBuffer() throws NdrException {
            NdrShort ns = new NdrShort(123); // masked value 123 (already fits in 8 bits)
            buf.reset();
            ns.encode(buf);
    
            // Reset buffer to start for decoding
            buf.reset();
    
            // Prepare a new object to decode into
            NdrShort decoded = new NdrShort(0);
            decoded.decode(buf);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        hasher.putShort((short) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testInt() {
        TestHasher hasher = new TestHasher();
        hasher.putInt(0x04030201);
        hasher.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testLong() {
        TestHasher hasher = new TestHasher();
        hasher.putLong(0x0807060504030201L);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        AtomicReference<Object> valueRef = new AtomicReference<>();
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return valueRef.get();
              }
            };
    
        assertNull(cache.getIfPresent(new Object()));
    
        Object newValue = new Object();
        valueRef.set(newValue);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/IntsTest.java

        testRotate(new int[] {1, 2}, -1, new int[] {2, 1});
        testRotate(new int[] {1, 2}, -2, new int[] {1, 2});
        testRotate(new int[] {1, 2}, 0, new int[] {1, 2});
        testRotate(new int[] {1, 2}, 1, new int[] {2, 1});
        testRotate(new int[] {1, 2}, 2, new int[] {1, 2});
        testRotate(new int[] {1, 2}, 3, new int[] {2, 1});
    
        testRotate(new int[] {1, 2, 3}, -5, new int[] {3, 1, 2});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

         */
        @Test
        public void testWriteParameterWordsWireFormat() {
            // Arrange
            SmbComWrite write = new SmbComWrite();
            write.setParam(0x1234, 0x5678L, 100, new byte[10], 0, 10);
            byte[] dst = new byte[20];
    
            // Act
            int bytesWritten = write.writeParameterWordsWireFormat(dst, 0);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/BooleansTest.java

      public void testRotate() {
        testRotate(new boolean[] {}, -1, new boolean[] {});
        testRotate(new boolean[] {}, 0, new boolean[] {});
        testRotate(new boolean[] {}, 1, new boolean[] {});
    
        testRotate(new boolean[] {true}, -2, new boolean[] {true});
        testRotate(new boolean[] {true}, -1, new boolean[] {true});
        testRotate(new boolean[] {true}, 0, new boolean[] {true});
        testRotate(new boolean[] {true}, 1, new boolean[] {true});
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            response = new Smb2QueryDirectoryResponse(mockConfig, expectInfoClass);
    
            assertNotNull(response);
            assertNull(response.getResults()); // Should be null before decoding
        }
    
        @Test
        @DisplayName("Test getResults returns null initially")
        void testGetResultsInitiallyNull() {
            response = new Smb2QueryDirectoryResponse(mockConfig, (byte) 0x03);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

     *
     * @author Jared Levy
     */
    @GwtIncompatible
    public class TestsForQueuesInJavaUtil {
      public static Test suite() {
        return new TestsForQueuesInJavaUtil().allTests();
      }
    
      public Test allTests() {
        TestSuite suite = new TestSuite();
        suite.addTest(testsForArrayDeque());
        suite.addTest(testsForLinkedList());
        suite.addTest(testsForArrayBlockingQueue());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            void testInterfaceHierarchy() {
                // Create instances
                SmbInfoAllocation smbInfo = new SmbInfoAllocation();
                FileFsSizeInformation sizeInfo = new FileFsSizeInformation();
                FileFsFullSizeInformation fullSizeInfo = new FileFsFullSizeInformation();
    
                // All should be FileSystemInformation
                assertTrue(smbInfo instanceof FileSystemInformation);
    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/smb/BufferCacheImplTest.java

        void cacheCapacityAndRetrievalOrder() {
            BufferCacheImpl impl = new BufferCacheImpl(2, 3);
            byte[] a = new byte[1];
            byte[] c = new byte[2];
            byte[] d = new byte[4];
    
            impl.releaseBuffer(a); // goes to slot 0
            impl.releaseBuffer(c); // goes to slot 1
            impl.releaseBuffer(d); // dropped (cache full)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top