- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 745 for Cock (0.02 sec)
-
src/test/java/jcifs/internal/RequestWithPathTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; /** * Test class for RequestWithPath interface */ @ExtendWith(MockitoExtension.class) class RequestWithPathTest { @Mock private RequestWithPath requestWithPath; private TestRequestWithPath testImplementation; @BeforeEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
return; } FileChannel channel = null; FileLock lock = null; try { Properties props = new Properties(); channel = new RandomAccessFile(touchfile, "rw").getChannel(); lock = channel.lock(); if (touchfile.canRead()) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Tue Apr 22 22:13:51 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
@ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT) public class SmbComSessionSetupAndXTest { @Mock private CIFSContext mockContext; @Mock private SmbComNegotiateResponse mockNegotiate; @Mock private ServerMessageBlock mockAndX; @Mock private Configuration mockConfig; private static byte[] blobCred() { return "blobdata".getBytes(StandardCharsets.UTF_8);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
class CIFSContextCredentialWrapperTest { @Mock private AbstractCIFSContext mockDelegate; @Mock private Credentials mockCredentials; @Mock private SmbRenewableCredentials mockRenewableCredentials; @Mock private CredentialsInternal mockRenewedCredentialsInternal; @Mock private NtlmAuthenticator mockNtlmAuthenticator; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/TestLogHandler.java
@NullMarked public class TestLogHandler extends Handler { private final Object lock = new Object(); /** We will keep a private list of all logged records */ @GuardedBy("lock") private final List<LogRecord> list = new ArrayList<>(); /** Adds the most recently logged record to our list. */ @Override public void publish(@Nullable LogRecord record) { synchronized (lock) { if (record != null) { list.add(record); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java
import static org.mockito.Mockito.when; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; class NdrLongTest { @Mock private NdrBuffer mockNdrBuffer; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
private LeaseManager leaseManager; private CIFSContext mockContext; private Configuration mockConfig; @BeforeEach void setUp() { mockContext = mock(CIFSContext.class); mockConfig = mock(Configuration.class); when(mockContext.getConfig()).thenReturn(mockConfig); when(mockConfig.getLeaseTimeout()).thenReturn(30000); when(mockConfig.getMaxLeases()).thenReturn(1000);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
@Mock private jcifs.CIFSContext ctx; @Mock private SmbSession session; @Mock private jcifs.DfsReferralData referral; @BeforeEach void resetMocks() { Mockito.reset(transport, ctx, session, referral); } // Happy path: hasCapability returns based on provided capability codes @ParameterizedTest @DisplayName("hasCapability returns expected values for various caps")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarCloseTest.java
// Create a mock policy_handle for each test mockHandle = mock(policy_handle.class); } /** * Test case for the {@link MsrpcLsarClose#MsrpcLsarClose(policy_handle)} constructor. * Verifies that the handle, ptype, and flags are correctly initialized. */ @Test void testConstructor() { // Create an instance of MsrpcLsarClose with the mock handle
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/DirFileEntryAdapterIteratorTest.java
* scenarios that don't require complex filter setups. */ @ExtendWith(MockitoExtension.class) class DirFileEntryAdapterIteratorTest { @Mock private SmbResource mockParent; @Mock private CloseableIterator<FileEntry> mockDelegate; @Mock private ResourceFilter mockFilter; @Mock private FileEntry mockFileEntry1; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0)