Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 421 - 430 of 975 for rock (0.02 seconds)

  1. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

    @DisplayName("Type1Message Tests")
    class Type1MessageTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
        private Configuration mockConfig;
    
        @Mock
        private NameServiceClient mockNameServiceClient;
    
        @Mock
        private NetbiosAddress mockLocalHost;
    
        @BeforeEach
        void setUp() {
            // Setup mock context with lenient stubbing to avoid UnnecessaryStubbingException
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.dcerpc.DcerpcConstants;
    import jcifs.internal.dtyp.ACE;
    import jcifs.internal.dtyp.SecurityDescriptor;
    
    @ExtendWith(MockitoExtension.class)
    class MsrpcShareGetInfoTest {
    
        @Mock
        private srvsvc.ShareInfo502 mockShareInfo502;
    
        @Mock
        private SecurityDescriptor mockSecurityDescriptor;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  3. cmd/erasure-server-pool.go

    	defer func() {
    		if unlockOnDefer {
    			nsUnlocker()
    		}
    	}()
    
    	// Acquire lock
    	if !opts.NoLock {
    		lock := z.NewNSLock(bucket, object)
    		lkctx, err := lock.GetRLock(ctx, globalOperationTimeout)
    		if err != nil {
    			return nil, err
    		}
    		ctx = lkctx.Context()
    		nsUnlocker = func() { lock.RUnlock(lkctx) }
    		unlockOnDefer = true
    	}
    
    	checkPrecondFn := opts.CheckPrecondFn
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 89.2K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java

    import static org.codehaus.plexus.testing.PlexusExtension.getBasedir;
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    
    /**
     */
    @Deprecated
    class ArtifactDeployerTest extends AbstractArtifactComponentTestCase {
        @Inject
        private ArtifactDeployer artifactDeployer;
    
        @Inject
        private SessionScope sessionScope;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReaderTest.java

    import org.junit.jupiter.api.Test;
    import org.mockito.ArgumentCaptor;
    
    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.verify;
    
    class DefaultArtifactDescriptorReaderTest extends AbstractRepositoryTestCase {
    
        @Test
        void testMng5459() throws Exception {
            // prepare
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/SmbResourceLocatorTest.java

                DummySmbResourceLocator root = new DummySmbResourceLocator("smb://server/");
                assertEquals("server/", root.getName());
            }
        }
    
        @Mock
        DfsReferralData dfs;
        @Mock
        Address addr;
    
        @Test
        @DisplayName("Mockito interaction – dependent objects are called appropriately")
        void testInteractionsWithStubbedDependencies() throws Exception {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8K bytes
    - Click Count (0)
  7. internal/dsync/locked_rand.go

    func (r *lockedRandSource) Int63() (n int64) {
    	r.lk.Lock()
    	n = r.src.Int63()
    	r.lk.Unlock()
    	return n
    }
    
    // Seed uses the provided seed value to initialize the generator to a
    // deterministic state.
    func (r *lockedRandSource) Seed(seed int64) {
    	r.lk.Lock()
    	r.src.Seed(seed)
    	r.lk.Unlock()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

    import jcifs.internal.smb1.com.SmbComClose;
    import jcifs.internal.smb2.create.Smb2CloseRequest;
    
    @ExtendWith(MockitoExtension.class)
    class SmbFileHandleImplTest {
    
        @Mock
        Configuration cfg;
    
        @Mock
        SmbTreeHandleImpl tree;
    
        private void stubValidTree(long treeId, boolean connected, boolean smb2) {
            lenient().when(tree.acquire()).thenReturn(tree);
            lenient().when(tree.getTreeId()).thenReturn(treeId);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  9. guava/src/com/google/common/util/concurrent/AbstractService.java

      /**
       * The current state of the service. This should be written with the lock held but can be read
       * without it because it is an immutable object in a volatile field. This is desirable so that
       * methods like {@link #state}, {@link #failureCause} and notably {@link #toString} can be run
       * without grabbing the lock.
       *
       * <p>To update this field correctly the lock must be held to guarantee that the state is
       * consistent.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

    import static org.junit.jupiter.api.Assertions.fail;
    import static org.mockito.Mockito.mock;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.params.ParameterizedTest;
    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    import jcifs.Configuration;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.3K bytes
    - Click Count (0)
Back to Top