- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for Assignable (0.05 sec)
-
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
assertNotNull(impl, "Implementation instance should not be null"); assertTrue(SessionSetupHandler.class.isInstance(impl), "Instance should be assignable to interface"); assertTrue(SessionSetupHandler.class.isAssignableFrom(impl.getClass()), "Type should be assignable"); } @Test @DisplayName("Edge: null is not an instance of the interface") void testNullIsNotInstance() { // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
SmbTreeImpl unwrapped = tree.unwrap(SmbTreeImpl.class); assertEquals(tree, unwrapped); // Test unwrapping to a non-assignable type should fail assertThrows(ClassCastException.class, () -> { // Create a mock class that extends SmbTree but is not assignable from SmbTreeImpl class CustomSmbTree extends SmbTreeImpl { CustomSmbTree() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
when(config.getPid()).thenReturn(12345); when(config.getSendBufferSize()).thenReturn(65536); 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);
Registered: 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/smb1/util/transport/TransportExceptionTest.java
} } @Nested @DisplayName("IOException Compatibility Tests") class IOExceptionCompatibilityTests { @Test @DisplayName("Should be assignable to IOException") void testIsIOException() { TransportException exception = new TransportException("Test"); assertTrue(exception instanceof IOException);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
assertEquals("DOM", sid.getDomainName()); assertEquals("alice", sid.getAccountName()); } @Test @DisplayName("unwrap returns this for assignable type; otherwise throws ClassCastException") void testUnwrap() throws Exception { SID sid = new SID("S-1-5-21-1"); // Happy path assertSame(sid, sid.unwrap(SID.class));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
@GwtCompatible @NullMarked public abstract class MapInterfaceTest<K extends @Nullable Object, V extends @Nullable Object> extends TestCase { /** A key type that is not assignable to any classes but Object. */ private static final class IncompatibleKeyType { @Override public String toString() { return "IncompatibleKeyType"; } } protected final boolean supportsPut;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 43.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
return new Assignability<>(); } } private static void assertAssignable(TypeToken<?> from, TypeToken<?> to) { assertTrue( from.getType() + " is expected to be assignable to " + to.getType(), to.isSupertypeOf(from)); assertTrue( to.getType() + " is expected to be a supertype of " + from.getType(), to.isSupertypeOf(from)); assertTrue(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
return new Assignability<>(); } } private static void assertAssignable(TypeToken<?> from, TypeToken<?> to) { assertTrue( from.getType() + " is expected to be assignable to " + to.getType(), to.isSupertypeOf(from)); assertTrue( to.getType() + " is expected to be a supertype of " + from.getType(), to.isSupertypeOf(from)); assertTrue(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0)