- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for unwrapped (0.05 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
src/main/java/jcifs/smb1/dcerpc/DcerpcSecurityProvider.java
* @param outgoing the buffer containing data to be wrapped * @throws DcerpcException if the wrapping operation fails */ void wrap(NdrBuffer outgoing) throws DcerpcException; /** * Unwraps incoming DCERPC message data after security processing * @param incoming the buffer containing data to be unwrapped * @throws DcerpcException if the unwrapping operation fails */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0)