Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 778 for sock (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/util/transport/RequestTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    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 RequestTest {
    
        @Mock
        private Request mockRequest;
    
        @BeforeEach
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. impl/maven-core/src/test/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListenerTest.java

            RepositorySystemSession session = mock(RepositorySystemSession.class);
            when(session.getLocalRepository()).thenReturn(localRepository);
    
            Artifact localRepositoryArtifact = mock(Artifact.class);
            when(localRepositoryArtifact.getFile()).thenReturn(new File(baseDir, "some/path/within"));
    
            Artifact nonLocalReposioryArtifact = mock(Artifact.class);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

    /**
     * Tests for SmbWatchHandleImpl focusing on behavior and interactions.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbWatchHandleImplTest {
    
        @Mock
        SmbFileHandleImpl handle;
    
        @Mock
        SmbTreeHandleImpl tree;
    
        // Prepare SMB2 flow with a given response
        private void setupSmb2(NotifyResponse resp, byte[] fileId) throws Exception {
    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)
  4. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

     * heavy network interactions through {@link SmbTransport}.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbSessionTest {
    
        @Mock
        UniAddress addr;
        @Mock
        InetAddress inet;
        NtlmPasswordAuthentication auth;
        @Mock
        SmbTransport transport;
    
        // static helper that returns the mocked transport. The real class
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. 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
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  6. impl/maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java

    class ConsumerPomArtifactTransformerTest {
    
        @Test
        void transform() throws Exception {
            RepositorySystemSession systemSessionMock = Mockito.mock(RepositorySystemSession.class);
            SessionData sessionDataMock = Mockito.mock(SessionData.class);
            when(systemSessionMock.getData()).thenReturn(sessionDataMock);
    
            Path beforePomFile =
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Nov 06 18:32:25 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/netbios/NameServicePacketTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Configuration;
    
    class NameServicePacketTest {
    
        private TestNameServicePacket packet;
        @Mock
        private Configuration mockConfig;
        @Mock
        private Name mockQuestionName;
        @Mock
        private Name mockRecordName;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/util/HMACT64Test.java

        @Mock
        private MessageDigest mockMd5;
    
        @BeforeEach
        void setUp() throws NoSuchAlgorithmException {
            // Mock Crypto.getMD5() to return our mockMd5 instance
            // This requires Mockito 3.4.0+ for MockedStatic
            // For simplicity, we'll assume Crypto.getMD5() is static and mock it.
            // If it's not static, we'd need to inject it or mock the class that provides it.
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  9. misc/ios/go_ios_exec.go

    var tmpdir string
    
    var (
    	devID    string
    	appID    string
    	teamID   string
    	bundleID string
    	deviceID string
    )
    
    // lock is a file lock to serialize iOS runs. It is global to avoid the
    // garbage collector finalizing it, closing the file and releasing the
    // lock prematurely.
    var lock *os.File
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("go_ios_exec: ")
    	if debug {
    		log.Println(strings.Join(os.Args, " "))
    	}
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 00:34:45 GMT 2025
    - 8.7K bytes
    - Click Count (0)
  10. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/AcceptedApiChangesJsonFileManagerTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import spock.lang.Specification
    import spock.lang.Subject
    import spock.lang.TempDir
    
    class AcceptedApiChangesJsonFileManagerTest extends Specification {
    
        @TempDir
        File temporaryFolder
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Aug 17 08:32:56 GMT 2021
    - 2.5K bytes
    - Click Count (0)
Back to Top