- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 852 for lock (0.01 sec)
-
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
import org.junit.jupiter.params.provider.ValueSource; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSException; @ExtendWith(MockitoExtension.class) class SmbPipeOutputStreamTest { @Mock SmbPipeHandleImpl handle; @Mock SmbTreeHandleImpl tree; @Mock SmbNamedPipe pipe; @Mock SmbFileHandleImpl fileHandle;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/CloseableUtil.java
* } finally { * close(is); * } * </pre> * <p> * If an exception occurs in the try block, there is a possibility that an exception will also occur in the finally block's {@link #close(Closeable)}. If the exception is thrown from the finally block, the original exception from the try block will be lost. * </p> * * @param closeable the closeable object * @see Closeable#close() */Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DosErrorTest.java
final int expectedNt = 0xc0000002; interface NtStatusConsumer { void consume(int ntStatus); } NtStatusConsumer mock = mock(NtStatusConsumer.class); findNtStatus(dosErr).ifPresent(mock::consume); verify(mock).consume(expectedNt); } @Test @DisplayName("DOS_ERROR_MESSAGES length matches expectations") void testMessageArrayLength() {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/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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
*/ fun schedule( name: String, delayNanos: Long = 0L, block: () -> Long, ) { schedule( object : Task(name) { override fun runOnce(): Long = block() }, delayNanos, ) } /** * Executes [block] once on a task runner thread. * * TODO: make this inline once this is fixed: https://github.com/oracle/graal/issues/3466
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 7.3K 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 timeoutsRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrCloseHandleTest.java
import static org.junit.jupiter.api.Assertions.assertNotNull; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.dcerpc.rpc.policy_handle; class MsrpcSamrCloseHandleTest { @Mock private policy_handle mockPolicyHandle; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
@BeforeEach public void setUp() { mockContext = Mockito.mock(CIFSContext.class); mockTransport = Mockito.mock(SmbTransportImpl.class); mockConfig = Mockito.mock(Configuration.class); mockCredentials = Mockito.mock(Credentials.class); mockCredentialsInternal = Mockito.mock(CredentialsInternal.class); Mockito.when(mockContext.getConfig()).thenReturn(mockConfig);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
*/ @ExtendWith(MockitoExtension.class) class SmbTreeInternalTest { @Mock private SmbTreeInternal tree; @Mock private CIFSContext context; @Mock private Request<CommonServerMessageBlockResponse> request; @Mock private CommonServerMessageBlockResponse response; @TestRegistered: 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/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java
private SamrAliasHandle aliasHandle; private LsarSidArray sids; @BeforeEach void setUp() { // Create mock objects for the constructor parameters aliasHandle = mock(SamrAliasHandle.class); sids = mock(LsarSidArray.class); } /** * Test method for {@link jcifs.dcerpc.msrpc.MsrpcGetMembersInAlias#MsrpcGetMembersInAlias(SamrAliasHandle, LsarSidArray)}.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0)