- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 157 for Locks (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
// Use ArgumentCaptor to capture the MsrpcSamrCloseHandle instance passed to sendrecv private ArgumentCaptor<MsrpcSamrCloseHandle> closeHandleCaptor; @BeforeEach void setUp() { // Initialize mocks and captors before each test MockitoAnnotations.openMocks(this); openDomainCaptor = ArgumentCaptor.forClass(MsrpcSamrOpenDomain.class); closeHandleCaptor = ArgumentCaptor.forClass(MsrpcSamrCloseHandle.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.9K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
fail("Failed to access servername field: " + e.getMessage()); } } @Test void testGetEntriesWithMultipleShares() throws Exception { // Create real ShareInfo1 objects instead of mocks srvsvc.ShareInfo1 shareInfo1 = new srvsvc.ShareInfo1(); shareInfo1.netname = "Share1"; shareInfo1.type = 0; shareInfo1.remark = "Remark for Share1";
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.2K bytes - Click Count (0) -
build-tools-internal/build.gradle
integTestImplementation("org.junit.jupiter:junit-jupiter") { because 'allows to write and run Jupiter tests' } integTestImplementation("net.bytebuddy:byte-buddy:1.11.0") { because 'Generating dynamic mocks of internal libraries like JdkJarHell' } testRuntimeOnly("org.junit.vintage:junit-vintage-engine") { because 'allows JUnit 3 and JUnit 4 tests to run' }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 13 18:10:22 GMT 2021 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/FileEntryTest.java
import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class FileEntryTest { @Mock FileEntry mockEntry; // Simple fake implementation to exercise the interface without mocks private static final class TestFileEntry implements FileEntry { private final String name; private final int type; private final int attributes; private final long createTime;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.SmbSession; /** * Tests for SmbTransportInternal interface using Mockito mocks to * exercise method contracts, checked exceptions, and interactions. */ @ExtendWith(MockitoExtension.class) public class SmbTransportInternalTest { @Mock private SmbTransportInternal transport;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/RequestTest.java
@Mock private CommonServerMessageBlock disconnectRequest; @Mock private CommonServerMessageBlockRequest nextRequest; @BeforeEach void setUp() { // Reset mocks before each test reset(request, response, context, disconnectRequest, nextRequest); } @Test @DisplayName("Test initResponse returns initialized response") void testInitResponse() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
void available_smb2_happyPath() throws Exception { // Verify SMB2 path: IOCTL peek result is returned and resources are closed SmbPipeInputStream stream = newStreamWithMinimalStubs(true); // Arrange mocks for available() when(handle.ensureOpen()).thenReturn(fd); when(fd.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(config);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainManagerTest.java
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; class DefaultToolchainManagerTest { // Mocks to inject into toolchainManager @Mock private Logger logger; private ToolchainManagerFactory.DefaultToolchainManagerV3 toolchainManager; @Mock private ToolchainFactory toolchainFactoryBasicType;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 11K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmServletTest.java
verify(response, never()).setHeader(eq("WWW-Authenticate"), anyString()); verify(response, never()).setStatus(HttpServletResponse.SC_UNAUTHORIZED); } /** * Helper method to set up common mocks required for authentication tests. * @throws CIFSException */ private void setupMocksForAuth() throws Exception { // This is a simplified way to get a transport context into the servlet.
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.5K bytes - Click Count (0)