Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 1,000 for sock (0.02 seconds)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.CommonServerMessageBlockRequest;
    import jcifs.internal.CommonServerMessageBlockResponse;
    
    class ServerMessageBlock2RequestTest {
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

    import org.mockito.Mockito;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    /**
     * Unit tests for the {@link AbstractUpgradeGoal} class.
     * Tests the shared functionality across upgrade goals including option handling,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

        }
    
        @Nested
        @DisplayName("Mock Tests")
        class MockTests {
    
            @Test
            @DisplayName("Should call encode on each chunk")
            void testCallsEncodeOnEachChunk() {
                // Given
                byte[] sourceKey = new byte[SOURCE_KEY_SIZE];
                SrvCopychunk mockChunk1 = mock(SrvCopychunk.class);
                SrvCopychunk mockChunk2 = mock(SrvCopychunk.class);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/DecodableTest.java

    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    
    import jcifs.internal.SMBProtocolDecodingException;
    
    /**
     * Test class for Decodable interface functionality
     */
    @DisplayName("Decodable Interface Tests")
    class DecodableTest extends BaseTest {
    
        @Mock
        private Decodable mockDecodable;
    
        @Test
        @DisplayName("Should define decode method")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrConnect4Test.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.dcerpc.DcerpcConstants;
    
    /**
     * Tests for {@link MsrpcSamrConnect4}.
     */
    class MsrpcSamrConnect4Test implements DcerpcConstants {
    
        @Mock
        private SamrPolicyHandle policyHandle;
    
        @BeforeEach
        void setUp() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SpnegoContextTest.java

    import org.mockito.ArgumentCaptor;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.CIFSException;
    import jcifs.Configuration;
    
    /**
     * Tests for SpnegoContext focusing on delegation, error handling, and edge cases.
     */
    @ExtendWith(MockitoExtension.class)
    class SpnegoContextTest {
    
        @Mock
        Configuration config;
    
        @Mock
        SSPContext mechContext;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  7. internal/event/targetlist.go

    }
    
    func (list *TargetList) incCurrentSendCalls(id TargetID) {
    	list.statLock.Lock()
    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    		stats = targetStat{}
    	}
    
    	stats.currentSendCalls++
    	list.targetStats[id] = stats
    }
    
    func (list *TargetList) decCurrentSendCalls(id TargetID) {
    	list.statLock.Lock()
    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

    import jcifs.internal.util.SMBUtil;
    
    class Trans2SetFileInformationTest {
    
        private Trans2SetFileInformation trans2SetFileInfo;
        private Configuration config;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private FileInformation mockFileInfo;
    
        private static final int TEST_FID = 0x1234;
        private static final int TEST_ATTRIBUTES = 0x20; // FILE_ATTRIBUTE_ARCHIVE
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/cache/Striped64.java

       * needed.
       *
       * A single spinlock ("busy") is used for initializing and
       * resizing the table, as well as populating slots with new Cells.
       * There is no need for a blocking lock; when the lock is not
       * available, threads try other slots (or the base).  During these
       * retries, there is increased contention and reduced locality,
       * which is still better than alternatives.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 15 22:17:15 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  10. internal/http/lambda-headers.go

    	AmzFwdHeaderLastModified       = "x-amz-fwd-header-Last-Modified"
    
    	AmzFwdHeaderObjectLockMode        = "x-amz-fwd-header-x-amz-object-lock-mode"
    	AmzFwdHeaderObjectLockLegalHold   = "x-amz-fwd-header-x-amz-object-lock-legal-hold"
    	AmzFwdHeaderObjectLockRetainUntil = "x-amz-fwd-header-x-amz-object-lock-retain-until-date"
    	AmzFwdHeaderMPPartsCount          = "x-amz-fwd-header-x-amz-mp-parts-count"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 3.1K bytes
    - Click Count (0)
Back to Top