Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 37 of 37 for mock3 (0.1 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractFuture.java

              //
              // addListener has thrown an exception! SetFuture.run can't throw any exceptions so this
              // must have been caused by addListener itself. The most likely explanation is a
              // misconfigured mock. Try to switch to Failure.
              Failure failure;
              try {
                failure = new Failure(t);
              } catch (Exception | Error oomMostLikely) { // sneaky checked exception
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
  2. docs/changelogs/changelog_3x.md

        interface will make your code easier to test. When you test code that makes
        HTTP requests, you can use this interface to replace the real `OkHttpClient`
        with your own mocks or fakes.
    
        The interface will also let you use OkHttp's API with another HTTP client's
        implementation. This is useful in sandboxed environments like Google App
        Engine.
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  3. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    	verifyVolumeReportedAsAttachedToNode(t, logger, generatedVolumeName, nodeName1, true, asw, volumeAttachedCheckTimeout)
    
    	// Delete the pod
    	dsw.DeletePod(types.UniquePodName(podName1), generatedVolumeName, nodeName1)
    
    	// Mock NodeStatusUpdate fail
    	rc.(*reconciler).nodeStatusUpdater = statusupdater.NewFakeNodeStatusUpdater(true /* returnError */)
    	reconciliationLoopFunc(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy

            _ * task.sharedResources >> (options.resources ?: [])
            _ * task.taskIdentity >> TestTaskIdentities.create(name, DefaultTask, project as ProjectInternal)
            TaskStateInternal state = Mock()
            _ * task.state >> state
            if (options.failure != null) {
                failure(task, options.failure)
            }
            return task
        }
    
        Node node(Map<String, ?> options = [:], String name) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 93.5K bytes
    - Viewed (0)
  5. pilot/pkg/model/push_context_test.go

    		t.Fail()
    	}
    }
    
    var _ ServiceDiscovery = &localServiceDiscovery{}
    
    // localServiceDiscovery is an in-memory ServiceDiscovery with mock services
    type localServiceDiscovery struct {
    	services         []*Service
    	serviceInstances []*ServiceInstance
    
    	NoopAmbientIndexes
    	NetworkGatewaysHandler
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    					node.ObjectMeta.Labels[labelKeys[i]] = label
    				}
    				node.Name = node.ObjectMeta.Labels["hostname"]
    				cache.AddNode(logger, node)
    				nodes[i] = node
    
    				// Set nodeInfo to extenders to mock extenders' cache for preemption.
    				cachedNodeInfo := framework.NewNodeInfo()
    				cachedNodeInfo.SetNode(node)
    				cachedNodeInfoMap[node.Name] = cachedNodeInfo
    			}
    			var extenders []framework.Extender
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  7. pilot/pkg/model/push_context.go

    		specificDestRules: map[host.Name][]*ConsolidatedDestRule{},
    		wildcardDestRules: map[host.Name][]*ConsolidatedDestRule{},
    	}
    }
    
    // Testing Only. This allows tests to inject a config without having the mock.
    func (ps *PushContext) SetDestinationRulesForTesting(configs []config.Config) {
    	ps.setDestinationRules(configs)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
Back to top