- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 116 for interactions (0.12 sec)
-
src/test/java/jcifs/smb/FileEntryTest.java
inOrder.verify(mockEntry).getName(); inOrder.verify(mockEntry, times(2)).getType(); } @Test @DisplayName("Mock without interactions reports none") void mock_noInteractions() { // Arrange/Act: do nothing // Assert: verify no interactions verifyNoInteractions(mockEntry); } // --- Fake implementation tests (happy path and edge cases) --- @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10K 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/SmbPipeInputStreamTest.java
} @Test @DisplayName("close() does nothing (no delegate interactions)") void close_isNoop() throws Exception { // Verify close() is a no-op and does not call handle/tree/fd SmbPipeInputStream stream = newStreamWithInit(true); // reset to ignore constructor interactions reset(handle, tree, fd); assertDoesNotThrow(stream::close);
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/SSPContextTest.java
} } @Nested @DisplayName("Mockito interactions") class MockitoInteractions { @Mock SSPContext mockCtx; // Helper exercising all SSPContext methods to verify call interactions. private void useContext(SSPContext ctx) throws Exception { ctx.getSigningKey(); ctx.isEstablished();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
assertArrayEquals(clientChallenge, Arrays.copyOfRange(actual, 16 + 16, 16 + 16 + 8)); } @Test @DisplayName("getPreNTLMResponse: uses OEM bytes, truncates to 14, verifies interactions") void testGetPreNTLMResponse_basicAndInteractions() throws Exception { // Arrange when(cifsContext.getConfig()).thenReturn(configuration);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
when(mockInfo.getLastWriteTime()).thenReturn(2000000L); // Use the mock response.info = mockInfo; // Verify interactions assertEquals(0x20, response.info.getAttributes()); assertEquals(1024L, response.info.getSize()); assertEquals(1000000L, response.info.getCreateTime());
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/internal/fscc/FileInformationTest.java
int encoded = mockFileInfo.encode(dst, 0); assertEquals(8, encoded); // Test size int size = mockFileInfo.size(); assertEquals(8, size); // Verify interactions verify(mockFileInfo).encode(dst, 0); verify(mockFileInfo).size(); } /** * Test concrete implementation with FileEndOfFileInformation */ @Test
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/SmbRandomAccessFileTest.java
import jcifs.internal.smb1.trans2.Trans2SetFileInformationResponse; import jcifs.internal.smb2.info.Smb2SetInfoRequest; /** * Tests for SmbRandomAccessFile covering happy paths, edge cases, and interactions. */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) public class SmbRandomAccessFileTest { // Helper: build a minimally wired instance with mocks; avoids real I/O
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
R8 is the [default optimizer][r8] in Android Studio 3.4 and newer. It works well with all releases of OkHttp. ProGuard was the previous default. We’re [tracking problems][proguard_problems] with interactions between ProGuard, OkHttp 4.x, and Kotlin-originated `.class` files. Make sure you’re on the latest release if you’re using ProGuard, Gradle ------
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
import org.jspecify.annotations.Nullable; /** * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a * test with reference to the same "lock-like object", and then their interactions with that object * are choreographed via the various methods on this class. * * <p>A "lock-like object" is really any object that may be used for concurrency control. If the
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.8K bytes - Viewed (0)