- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 173 for mock3 (0.11 sec)
-
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/LocalComponentGraphResolveStateFactoryTest.groovy
} def "dependency is attached to configuration and its children"() { def dependency1 = Mock(ExternalModuleDependency) def dependency2 = Mock(ExternalModuleDependency) def dependency3 = Mock(ExternalModuleDependency) when: def conf1 = dependencyScope("conf1") def conf2 = dependencyScope("conf2")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 19:04:04 UTC 2024 - 15.2K bytes - Viewed (0) -
pkg/kube/krt/krttest/helpers.go
t test.Failer inputs []any } // NewMock creates a helper to build Collections of static inputs for use with testing. // Example usage: // // mock := krttest.NewMock(t, []any{serviceFoo, podBar, namespaceBaz}) // pods := krttest.GetMockCollection[Pod](mock) // makes a collection of all Pod types from inputs func NewMock(t test.Failer, inputs []any) *MockCollection { t.Helper() mc := &MockCollection{t: t, inputs: inputs}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 19:33:01 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DefaultDaemonConnectorTest.groovy
def address = createAddress(daemonNum) registry.store(new DaemonInfo(address, context, "password".bytes, Busy)) return new DaemonStartupInfo(daemonNum.toString(), Mock(), Mock()); } def startIdleDaemon() { def daemonNum = daemonCounter++
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 6.4K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactoryTest.groovy
private static final int NUM_EXTERNAL_JARS = 6 ModuleRegistry moduleRegistry = Mock(ModuleRegistry) { getModule(_) >> { module(it[0], false) } getExternalModule(_) >> { module(it[0], true) } } def runtimeClasses = Spy(TestClassDetector) def classDetectorFactory = Mock(ForkedTestClasspathFactory.ClassDetectorFactory) { create(_, _) >> { runtimeClasses } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 14.5K bytes - Viewed (0) -
samples/bookinfo/src/productpage/test-requirements.in
requests-mock==1.5.2...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 24 19:35:04 UTC 2024 - 21 bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/DefaultStandardOutputRedirectorTest.groovy
private final DefaultStandardOutputRedirector redirector = new DefaultStandardOutputRedirector() private final StandardOutputRedirector.OutputListener stdOutListener = Mock() private final StandardOutputRedirector.OutputListener stdErrListener = Mock() def startAndStopDoesNothingWhenNothingRedirected() { when: redirector.start() System.out.println('this is stdout')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/processors/CaptureTestOutputTestResultProcessorTest.groovy
import spock.lang.Specification import spock.lang.Subject class CaptureTestOutputTestResultProcessorTest extends Specification { TestResultProcessor target = Mock() TestOutputRedirector redirector = Mock() @Subject processor = new CaptureTestOutputTestResultProcessor(target, redirector) def "starts capturing output"() { def suite = new DefaultTestSuiteDescriptor("1", "Foo")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3.5K bytes - Viewed (0) -
security/pkg/nodeagent/caclient/providers/mock/mockcaclient.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package mock import ( "encoding/pem" "fmt" "path" "sync/atomic" "time" "istio.io/istio/security/pkg/pki/util" ) var ( sampleKeyCertsPath = "../../../../samples/certs/"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 3K bytes - Viewed (0) -
platforms/ide/problems-api/src/test/groovy/org/gradle/api/problems/internal/DefaultProblemTest.groovy
import org.gradle.internal.operations.OperationIdentifier import spock.lang.Specification class DefaultProblemTest extends Specification { def "unbound builder result is equal to original"() { def additionalData = Mock(AdditionalData) def problem = createTestProblem(severity, additionalData) def newProblem = problem.toBuilder().build() expect: newProblem.definition.id.name == problem.definition.id.name
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 08:30:15 UTC 2024 - 4.8K bytes - Viewed (0) -
maven-embedder/src/test/java/org/apache/maven/cli/transfer/SimplexTransferListenerTest.java
TransferResource resource = new TransferResource(null, null, "http://maven.org/test/test-resource", null, null); RepositorySystemSession session = Mockito.mock(RepositorySystemSession.class); TransferListener delegate = Mockito.mock(TransferListener.class); SimplexTransferListener listener = new SimplexTransferListener(delegate);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 20:50:56 UTC 2024 - 4.9K bytes - Viewed (0)