Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for unwrapped (0.06 sec)

  1. src/test/java/jcifs/smb/SmbEnumerationUtilTest.java

                Class<?> utilClass = SmbEnumerationUtil.class;
    
                // Act
                Object unwrapped = invokePrivate(utilClass, "unwrapDOSFilter", new Class<?>[] { ResourceFilter.class }, wrapper);
    
                // Assert
                assertNotNull(unwrapped);
                assertTrue(unwrapped instanceof DosFileFilter);
    
                // Verify fields preserved (via reflection since they are protected)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTreeTest.java

            doNothing().when(smbTree).close();
            doNothing().when(customTree).close();
    
            // Unwrap then close both
            CustomSmbTree unwrapped = smbTree.unwrap(CustomSmbTree.class);
            smbTree.close();
            unwrapped.close();
    
            verify(smbTree).unwrap(CustomSmbTree.class);
            verify(smbTree).close();
            verify(customTree).close();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/AddressTest.java

            // Given
            when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);
    
            // When & Then
            Address unwrapped = mockAddress.unwrap(Address.class);
            assertSame(mockAddress, unwrapped, "Should return same instance for supported type");
        }
    
        @Test
        @DisplayName("getHostName should return valid hostname or address")
        void testGetHostNameContract() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/CredentialsInternalTest.java

            // Act & Assert
            // unwrap to interface itself should return same instance
            CredentialsInternal unwrapped = creds.unwrap(CredentialsInternal.class);
            assertNotNull(unwrapped, "unwrap to CredentialsInternal returns instance");
            assertSame(creds, unwrapped, "unwrap returns the same object instance");
    
            // unwrap to unrelated type should return null (use another Credentials implementation)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Primitives.java

        checkNotNull(type);
    
        // cast is safe: long.class and Long.class are both of type Class<Long>
        @SuppressWarnings("unchecked")
        Class<T> unwrapped = (Class<T>) WRAPPER_TO_PRIMITIVE_TYPE.get(type);
        return (unwrapped == null) ? type : unwrapped;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SmbTransportTest.java

            // Act
            SmbTransport result = smbTransport.unwrap(SmbTransport.class);
    
            // Assert
            assertNotNull(result, "Unwrapped transport should not be null");
            assertEquals(mockUnwrappedTransport, result, "Returned unwrapped transport should be the mocked one");
            verify(smbTransport).unwrap(SmbTransport.class); // Verify that the method was called
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/LsarSidArrayXTest.java

            assertEquals(2, lsarSidArrayX.sids.length, "sids array length should match");
            assertEquals(sidT1, lsarSidArrayX.sids[0].sid, "First SID should be unwrapped correctly");
            assertEquals(sidT2, lsarSidArrayX.sids[1].sid, "Second SID should be unwrapped correctly");
        }
    
        @Test
        void testConstructorWithJcifsSIDArrayDirectAssignment() {
            // Create mock SID objects
            SID mockSid1 = mock(SID.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/CredentialsTest.java

        void testUnwrap() {
            // Given
            when(mockCredentials.unwrap(Credentials.class)).thenReturn(mockCredentials);
    
            // When
            Credentials unwrapped = mockCredentials.unwrap(Credentials.class);
    
            // Then
            assertSame(mockCredentials, unwrapped);
            verify(mockCredentials).unwrap(Credentials.class);
        }
    
        @Test
        @DisplayName("Should get user domain")
        void testGetUserDomain() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeInternalTest.java

            // Arrange
            when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree);
    
            // Act
            SmbTree unwrapped = tree.unwrap(SmbTreeInternal.class);
            tree.close();
    
            // Assert
            assertNotNull(unwrapped);
            verify(tree).unwrap(SmbTreeInternal.class);
            verify(tree).close();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/Address.java

        /**
         * Unwrap the address to a specific type
         *
         * @param <T> the type to unwrap to
         * @param type the target type to unwrap to
         * @return instance for type, null if the type cannot be unwrapped
         */
        <T extends Address> T unwrap(Class<T> type);
    
        /**
         * Gets the host name of this address.
         *
         * @return the resolved host name, or the host address if it could not be resolved
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
Back to top