- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 153 for intersection (0.07 sec)
-
src/test/java/jcifs/smb/SmbTreeInternalTest.java
import jcifs.internal.Request; /** * Tests for SmbTreeInternal interface behavior via mocks. * Since this is an interface, we validate its public API contract * through interaction testing and generic type usage. */ @ExtendWith(MockitoExtension.class) class SmbTreeInternalTest { @Mock private SmbTreeInternal tree; @Mock private CIFSContext context; @Mock
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/test/java/jcifs/smb/RequestParamTest.java
assertSame(rp, Enum.valueOf(RequestParam.class, rp.name())); } } // Interaction: Demonstrate no external interactions occur (no collaborators to call) // We use Mockito in a minimal, meaningful way: pass the enum to a mocked consumer and verify interaction. interface EnumConsumer { void accept(RequestParam rp); } @Mock EnumConsumer consumer;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/FileEntryTest.java
/** * Unit tests for {@link FileEntry}. The interface itself has no * implementation, so the tests exercise the contract via Mockito mocks. * Each method is exercised for normal inputs, extreme or edge cases, and * interaction verification. */ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times;
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/smb/SmbUnsupportedOperationExceptionTest.java
Supplier<String> supplier = mock(Supplier.class); when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom"))); // Act & Assert: the exception is propagated and interaction recorded once RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java
assertEquals(0x80, SmbConstants.FLAGS_RESPONSE); } /** * Test interaction with SmbTransport using Mockito. * This demonstrates mocking capabilities for testing. */ @Test @DisplayName("Mock interaction example with SmbTransport") void mockTransportInteraction() { // Create a mock of SmbTransport from jcifs package
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorInternalTest.java
String out = locator.handleDFSReferral(referral, reqPath); assertEquals(resolved, out); // Verify exact argument interaction verify(locator, times(1)).handleDFSReferral(referral, reqPath); verifyNoMoreInteractions(locator); } // Edge / invalid: null referral or empty/blank path @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
src/cmd/asm/internal/arch/s390x.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file encapsulates some of the odd characteristics of the // s390x instruction set, to minimize its interaction // with the core of the assembler. package arch import ( "cmd/internal/obj/s390x" ) func jumpS390x(word string) bool { switch word { case "BRC", "BC", "BCL", "BEQ", "BGE",
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Oct 17 14:55:25 UTC 2019 - 1.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
if (tc == null) { throw new NullPointerException("tc"); } // Exercise interaction with dependency for verification purposes // These methods do not throw and allow interaction checks. tc.getConfig(); tc.getCredentials(); // Minimal behavior: return a mock SSPContext with lenient stubbing
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/SmbTreeHandleInternalTest.java
private SmbTreeHandleInternal handle; @Test @DisplayName("release(): verifies it is invoked exactly once") void release_invokedOnce() throws Exception { // Arrange: no setup needed; we verify interaction only // Act: call release handle.release(); // Assert: verify one invocation and no more verify(handle, times(1)).release(); verifyNoMoreInteractions(handle); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/cmd/asm/internal/arch/riscv64.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file encapsulates some of the odd characteristics of the RISCV64 // instruction set, to minimize its interaction with the core of the // assembler. package arch import ( "cmd/internal/obj" "cmd/internal/obj/riscv" ) // IsRISCV64AMO reports whether op is an AMO instruction that requires // special handling.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 14 15:13:11 UTC 2025 - 1.8K bytes - Viewed (0)