- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 272 for mock (0.18 sec)
-
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) -
maven-api-impl/src/test/java/org/apache/maven/internal/impl/DefaultSettingsBuilderFactoryTest.java
import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import static org.junit.jupiter.api.Assertions.assertNotNull; /** */ @ExtendWith(MockitoExtension.class) class DefaultSettingsBuilderFactoryTest { @Mock Session session; @BeforeEach void setup() {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 2.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java
import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.arrayWithSize; import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.is; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** */ @PlexusTest class DefaultLifecyclesTest { @Inject private DefaultLifecycles defaultLifeCycles; @Test void testDefaultLifecycles() {
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 4.3K bytes - Viewed (0) -
cni/pkg/nodeagent/server_test.go
UID: types.UID("test"), Annotations: map[string]string{ constants.AmbientRedirection: constants.AmbientRedirectionEnabled, }, }, } } type fakeServer struct { mock.Mock testWG *WaitGroup // optional waitgroup, if code under test makes a number of async calls to fakeServer } func (f *fakeServer) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
This provider might be charging you per request, and calling it might take some extra time than if you had a fixed mock user for tests. You probably want to test the external provider once, but not necessarily call it for every test that runs. In this case, you can override the dependency that calls that provider, and use a custom dependency that returns a mock user, only for your tests. ### Use the `app.dependency_overrides` attribute
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 2.9K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
TestDomainObject value1 = new TestDomainObject('a') TestDomainObject value2 = new TestDomainObject('a') repository.put('class1', value1) repository.put('class2', value2) Closure cl = Mock() when: repository.each(cl) then: 1 * cl.call(['class1', value1] as Object[]) 1 * cl.call(['class2', value2] as Object[]) 0 * cl._ }
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Sat Apr 06 02:21:33 GMT 2024 - 3.8K bytes - Viewed (0) -
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) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/ParameterMetaDataTest.groovy
*/ package gradlebuild.docs.dsl.source.model import spock.lang.Specification class ParameterMetaDataTest extends Specification { def "formats signature"() { MethodMetaData method = Mock() def parameter = new ParameterMetaData('param') def type = new TypeMetaData('org.gradle.SomeType') parameter.type = type expect: parameter.signature == 'org.gradle.SomeType param'
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; class DefaultToolchainTest { private final Logger logger = mock(Logger.class); @BeforeEach void setUp() throws Exception { MockitoAnnotations.initMocks(this); }
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Sep 22 09:07:17 GMT 2023 - 4.9K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
import org.eclipse.aether.DefaultRepositoryCache; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.RepositorySystem; import org.junit.jupiter.api.BeforeEach; import static org.mockito.Mockito.mock; /** */ @PlexusTest public abstract class AbstractMavenProjectTestCase { protected ProjectBuilder projectBuilder; @Inject protected MavenRepositorySystem repositorySystem; @Inject
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6.7K bytes - Viewed (0)