- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 814 for rock (1.85 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
/** * Unit tests for DirectoryLeaseManager */ public class DirectoryLeaseManagerTest { @Mock private CIFSContext context; @Mock private Configuration config; @Mock private LeaseManager baseLeaseManager; @Mock private SmbFile mockFile1; @Mock private SmbFile mockFile2; private DirectoryLeaseManager directoryLeaseManager;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/WinErrorTest.java
}); } } @Test @DisplayName("Mockito mock of WinError") void mockInterfaceNoOps() { WinError mock = Mockito.mock(WinError.class); assertNotNull(mock); assertTrue(Mockito.mockingDetails(mock).isMock(), "Object should be a Mockito mock"); Mockito.verifyNoInteractions(mock); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
* 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 * {@link #callAndAssertBlocks} method is ever called in a test, the lock-like object must have a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
/** The timestamp of the last taken event, used to measure elapsed time between events. */ private var lastTimestampNs: Long? = null /** Confirm that the thread does not hold a lock on `lock` during the callback. */ fun forbidLock(lock: Any) { forbiddenLocks.add(lock) } /** * Removes recorded events up to (and including) an event is found whose class equals [eventClass] * and returns it. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
class NameServiceClientImplTest { @Mock private CIFSContext mockContext; @Mock private Configuration mockConfig; @Mock private NetbiosAddress mockNetbiosAddress; @Mock private Address mockAddress; private NameServiceClientImpl nameServiceClient; @BeforeEach void setUp() throws UnknownHostException { // Configure mock context with fast timeouts
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/RequestImplementationTest.java
import static org.mockito.Mockito.mock; class RequestImplementationTest { @Test void testArtifactResolverRequestEquality() { Session session = mock(Session.class); ArtifactCoordinates coords1 = mock(ArtifactCoordinates.class); ArtifactCoordinates coords2 = mock(ArtifactCoordinates.class); RemoteRepository repo1 = mock(RemoteRepository.class);
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 4.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
} /** * Invokes {@code lock.}{@link Lock#tryLock(long, TimeUnit) tryLock(timeout, unit)} * uninterruptibly. * * @since 30.0 */ @J2ktIncompatible @GwtIncompatible // concurrency @SuppressWarnings("GoodTime") // should accept a java.time.Duration public static boolean tryLockUninterruptibly(Lock lock, long timeout, TimeUnit unit) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacGroupTest.java
import static org.mockito.Mockito.mock; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import jcifs.smb.SID; /** * Tests for the {@link PacGroup} class. */ class PacGroupTest { private SID mockSid; private PacGroup pacGroup; private final int attributes = 42; @BeforeEach void setUp() { // Mock the SID object mockSid = mock(SID.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) class SmbSessionImplTest { @Mock private CIFSContext cifsContext; @Mock private Configuration configuration; @Mock private Credentials credentials; @Mock private CredentialsInternal credentialsInternal; @Mock private SmbTransportImpl transport; private SmbSessionImpl newSession() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert assertEquals(-1L, trace.getTreeId()); } @Test @DisplayName("getConfig(): delegates to context") void getConfig_delegatesToContext() { // Arrange CIFSContext ctx = mock(CIFSContext.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0)