Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 155 for cock (0.17 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    
    import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter;
    import junit.framework.TestCase;
    
    /** @author Gregory Kick */
    public class UncaughtExceptionHandlersTest extends TestCase {
    
      private Runtime runtimeMock;
    
      @Override
      protected void setUp() {
        runtimeMock = mock(Runtime.class);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  2. 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;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

    import org.codehaus.plexus.testing.PlexusTest;
    import org.eclipse.sisu.Typed;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.extension.ExtendWith;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Apr 23 12:52:20 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       * of reads may not be immediately reflected on the algorithm's data structures. These structures
       * are guarded by a lock and operations are applied in batches to avoid lock contention. The
       * penalty of applying the batches is spread across threads so that the amortized cost is slightly
       * higher than performing just the operation without enforcing the capacity constraint.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/eventbus/StringCatcher.java

    import com.google.common.collect.Lists;
    import java.util.List;
    import junit.framework.Assert;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A simple EventSubscriber mock that records Strings.
     *
     * <p>For testing fun, also includes a landmine method that EventBus tests are required not
     * to call ({@link #methodWithoutAnnotation(String)}).
     *
     * @author Cliff Biffle
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal.smb2.lock;
    
    
    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    
    
    /**
     * @author mbechler
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.9K bytes
    - Viewed (0)
  7. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java

     * cannot do TLS over domain sockets.
     */
    public class ClientAndServer {
      public void run() throws Exception {
        File socketFile = new File("/tmp/ClientAndServer.sock");
        socketFile.delete(); // Clean up from previous runs.
    
        MockWebServer server = new MockWebServer();
        server.setServerSocketFactory(new UnixDomainServerSocketFactory(socketFile));
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Dec 24 03:46:30 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        @Override
        public String toString() {
          return events.toString();
        }
      }
    
      @AndroidIncompatible // Mockito loses its ability to mock doGetRate as of Android 21
      public void testMockingMockito() throws Exception {
        RateLimiter mock = Mockito.mock(RateLimiter.class);
        for (Method method : RateLimiter.class.getMethods()) {
          if (!isStatic(method.getModifiers())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

      /**
       * Interrupts the running task. Because this internally calls {@link Thread#interrupt()} which can
       * in turn invoke arbitrary code it is not safe to call while holding a lock.
       */
      final void interruptTask() {
        // Since the Thread is replaced by DONE before run() invokes listeners or returns, if we succeed
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Sep 29 21:34:48 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  10. maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

                url = "file://" + url.substring("file:".length());
            }
    
            // So now we have an url of the form file://<path>
    
            // We want to eliminate any relative path nonsense and lock down the path so we
            // need to fully resolve it before any submodules use the path. This can happen
            // when you are using a custom settings.xml that contains a relative path entry
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 31.6K bytes
    - Viewed (0)
Back to top