Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for mockito (0.13 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt

    import org.gradle.plugin.management.internal.PluginRequests
    import org.hamcrest.CoreMatchers.equalTo
    import org.hamcrest.MatcherAssert.assertThat
    import org.junit.Test
    import org.mockito.InOrder
    import java.util.Arrays.fill
    
    
    class ResidualProgramCompilerTest : TestWithCompiler() {
    
        @Test
        fun `Static(CloseTargetScope)`() {
    
            withExecutableProgramFor(Static(CloseTargetScope)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  2. build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt

        val mina = "org.apache.mina:mina-core"
        val mockitoCore = "org.mockito:mockito-core"
        val mockitoKotlin = "com.nhaarman:mockito-kotlin"
        val mockitoKotlin2 = "com.nhaarman.mockitokotlin2:mockito-kotlin"
        val mockwebserver = "com.squareup.okhttp3:mockwebserver"
        val mySqlConnector = "mysql:mysql-connector-java"
        val netty = "io.netty:netty-all"
        val opentest4j = "org.opentest4j:opentest4j"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 22:44:42 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. src/syscall/mkerrors.sh

    '
    
    includes_Darwin='
    #define _DARWIN_C_SOURCE
    #define KERNEL
    #define _DARWIN_USE_64_BIT_INODE
    #include <sys/types.h>
    #include <sys/event.h>
    #include <sys/ptrace.h>
    #include <sys/socket.h>
    #include <sys/sockio.h>
    #include <sys/sysctl.h>
    #include <sys/mman.h>
    #include <sys/wait.h>
    #include <net/bpf.h>
    #include <net/if.h>
    #include <net/if_types.h>
    #include <net/route.h>
    #include <netinet/in.h>
    #include <netinet/ip.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 21:22:22 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    #include <sys/kern_control.h>
    #include <sys/types.h>
    #include <sys/event.h>
    #include <sys/ptrace.h>
    #include <sys/select.h>
    #include <sys/socket.h>
    #include <sys/stat.h>
    #include <sys/un.h>
    #include <sys/sockio.h>
    #include <sys/sys_domain.h>
    #include <sys/sysctl.h>
    #include <sys/mman.h>
    #include <sys/mount.h>
    #include <sys/utsname.h>
    #include <sys/wait.h>
    #include <sys/xattr.h>
    #include <sys/vsock.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  5. pkg/proxy/util/nfacct/nfacct_linux_test.go

    		// remove the response from the list of predefined responses and add it to request object for mocking.
    		fh.responses = fh.responses[1:]
    	}
    
    	var err error
    	if fh.errs != nil && len(fh.errs) > 0 {
    		err = fh.errs[0]
    		// remove the error from the list of predefined errors and add it to request object for mocking.
    		fh.errs = fh.errs[1:]
    	}
    
    	req := &fakeRequest{cmd: cmd, flags: flags, response: response, err: err}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        taskFaker.runTasks()
      }
    
      private fun connectHttp2(
        peer: MockHttp2Peer,
        realConnection: RealConnection,
        maxConcurrentStreams: Int,
      ): Http2Connection {
        // Write the mocking script.
        val settings1 = Settings()
        settings1[Settings.MAX_CONCURRENT_STREAMS] = maxConcurrentStreams
        peer.sendFrame().settings(settings1)
        peer.acceptFrame() // ACK
        peer.sendFrame().ping(false, 2, 0)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy

                    @Inject
                    abstract FileLockManager getFileLockManager()
    
                    @Inject
                    abstract ProjectLayout getProjectLayout()
    
                    @TaskAction
                    void lockIt() {
                        def lock
                        try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	conn net.Conn
    
    	// Dialer is the dialer used to connect.  Used if non-nil.
    	Dialer *net.Dialer
    
    	// proxier knows which proxy to use given a request, defaults to http.ProxyFromEnvironment
    	// Used primarily for mocking the proxy discovery in tests.
    	proxier func(req *http.Request) (*url.URL, error)
    
    	// pingPeriod is a period for sending Ping frames over established
    	// connections.
    	pingPeriod time.Duration
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_test.go

    func (s *fakeProxyServerError) Run(ctx context.Context) error {
    	for {
    		time.Sleep(2 * time.Second)
    		return fmt.Errorf("mocking error from ProxyServer.Run()")
    	}
    }
    
    // CleanupAndExit runs in the specified ProxyServer.
    func (s *fakeProxyServerError) CleanupAndExit() error {
    	return errors.New("mocking error from ProxyServer.CleanupAndExit()")
    }
    
    func TestAddressFromDeprecatedFlags(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. cmd/kube-proxy/app/server_linux_test.go

    			append:      true,
    			expectedErr: "content of the proxy server's configuration file was updated",
    		},
    		{
    			name:        "fake error",
    			proxyServer: new(fakeProxyServerError),
    			expectedErr: "mocking error from ProxyServer.Run()",
    		},
    	}
    
    	for _, tc := range testCases {
    		_, ctx := ktesting.NewTestContext(t)
    		file, tempDir, err := setUp()
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top