- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 940 for sock (0.02 seconds)
-
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
private CIFSContext mockContext; private Smb2SetInfoRequest request; private byte[] testFileId; @BeforeEach void setUp() { mockConfig = mock(Configuration.class); mockContext = mock(CIFSContext.class); when(mockContext.getConfig()).thenReturn(mockConfig); testFileId = new byte[16]; for (int i = 0; i < 16; i++) { testFileId[i] = (byte) i;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultSessionTest.java
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; public class DefaultSessionTest { @Test void testRootDirectoryWithNull() { RepositorySystemSession rss = new DefaultRepositorySystemSession(h -> false);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LockRequest.java
private byte[] fileId; private final Smb2Lock[] locks; /** * Constructs an SMB2 lock request with the specified parameters. * * @param config the configuration for this request * @param fileId the file identifier for the file to lock * @param locks the array of lock elements to apply */ public Smb2LockRequest(final Configuration config, final byte[] fileId, final Smb2Lock[] locks) {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
CommonServerMessageBlockRequest next = mock(CommonServerMessageBlockRequest.class, withSettings().extraInterfaces(RequestWithFileId.class)); resp.prepare(next); verify((RequestWithFileId) next, times(1)).setFileId(eq(fileId)); } @Test void prepare_doesNothing_whenNotReceived() { Configuration config = Mockito.mock(Configuration.class);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
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; @BeforeEachCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
import org.mockito.InOrder; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.CIFSException; import jcifs.SmbSession; /** * Tests for SmbTreeHandleInternal interface using Mockito to verify * interactions and observable behavior of collaborators. */ @ExtendWith(MockitoExtension.class) public class SmbTreeHandleInternalTest { @Mock private SmbTreeHandleInternal handle;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.smb1.dcerpc.DcerpcHandle; import jcifs.smb1.smb1.SmbException; @ExtendWith(MockitoExtension.class) class LsaPolicyHandleTest { @Mock private DcerpcHandle mockDcerpcHandle; @BeforeEach void setUp() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.2K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/SourceRootTest.java
} @Test void testTargetPath() { Build build = mock(Build.class); when(build.getDirectory()).thenReturn("target"); when(build.getOutputDirectory()).thenReturn("target/classes"); when(build.getTestOutputDirectory()).thenReturn("target/test-classes"); Project project = mock(Project.class); when(project.getBuild()).thenReturn(build);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Oct 26 17:22:14 GMT 2025 - 2.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// 'swallowException' when the mock does not throw an exception. setupCloseable(false); doClose(mockCloseable, false, false); setupCloseable(false); doClose(mockCloseable, true, false); } public void testClose_closeableWithEatenException() throws IOException { // make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.1K bytes - Click Count (0) -
cmd/callhome.go
return } go func() { r := rand.New(rand.NewSource(time.Now().UnixNano())) // Leader node (that successfully acquires the lock inside runCallhome) // will keep performing the callhome. If the leader goes down for some reason, // the lock will be released and another node will acquire it and take over // because of this loop. for { if !globalCallhomeConfig.Enabled() { return }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.3K bytes - Click Count (0)