- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Assignable (0.04 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)