- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 143 for unwrap (0.26 sec)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
jcifs.SID mockSid2 = mock(jcifs.SID.class); jcifs.SID mockSid3 = mock(jcifs.SID.class); when(mockSid1.unwrap(sid_t.class)).thenReturn(mockSidT); when(mockSid2.unwrap(sid_t.class)).thenReturn(mockSidT); when(mockSid3.unwrap(sid_t.class)).thenReturn(mockSidT); testSids = new jcifs.SID[] { mockSid1, mockSid2, mockSid3 }; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/SmbSessionTest.java
assertTrue(SmbSession.class.isAssignableFrom((Class<?>) unwrapMethod.getReturnType()), "unwrap method should return SmbSession or subtype"); }, "unwrap(Class) method should be properly defined"); } @Test @DisplayName("Should handle unwrap with SmbSession type")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
target = new SmbPipeHandleImpl(pipe); } @Test @DisplayName("unwrap returns self for assignable type; throws for incompatible and null") void testUnwrap() { // Happy path: unwrap to concrete type SmbPipeHandleImpl unwrapped = target.unwrap(SmbPipeHandleImpl.class); assertSame(target, unwrapped); // Incompatible type: expect ClassCastExceptionRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K 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");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/smb/SmbTransportImplTest.java
} @Test @DisplayName("unwrap returns this for compatible types and throws otherwise") void unwrapBehavior() { // Happy paths SmbTransport asIface = transport.unwrap(SmbTransport.class); assertSame(transport, asIface); SmbTransportInternal asInternal = transport.unwrap(SmbTransportInternal.class); assertSame(transport, asInternal);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
when(mockTransport.unwrap(SmbTransportInternal.class)).thenReturn(internal); when(internal.getSmbSession(eq(ctx), eq("server.test"), isNull())).thenReturn(session); when(session.unwrap(SmbSessionInternal.class)).thenReturn(session); when(session.getSmbTree(eq("IPC$"), isNull())).thenReturn(tree); when(tree.unwrap(SmbTreeInternal.class)).thenReturn(tree);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
.unwrap(SmbTransportInternal.class); final SmbTransportInternal trans = this.exclusiveTransport; try (SmbSessionInternal smbSession = trans.getSmbSession(this.ctx, host, targetDomain).unwrap(SmbSessionInternal.class); SmbTreeImpl uct = smbSession.getSmbTree(share, null).unwrap(SmbTreeImpl.class);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/test/java/jcifs/netbios/UniAddressTest.java
} } @Nested @DisplayName("unwrap method tests") class UnwrapTests { private Address mockAddress; @BeforeEach void setup() { mockAddress = mock(Address.class); } @Test void shouldReturnUnwrappedAddressWhenWrappedIsAddress() { when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertSame(data, data.next()); } } @Nested @DisplayName("Unwrap Tests") class UnwrapTests { @Test @DisplayName("Should unwrap to DfsReferralData interface") void testUnwrapToDfsReferralData() { DfsReferralData unwrapped = referralData.unwrap(DfsReferralData.class); assertSame(referralData, unwrapped); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
} @Test @DisplayName("unwrap: returns self for compatible type and throws for incompatible") @SuppressWarnings({ "rawtypes", "unchecked" }) void testUnwrap() { SmbSessionImpl session = newSession(); // Happy path: ask for SmbSession and SmbSessionInternal assertSame(session, session.unwrap(SmbSessionInternal.class));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)