- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 594 for mock (0.14 sec)
-
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// 'swallowException' when the mock does not throw an exception. setupCloseable(false); doClose(mockCloseable, false, false); setupCloseable(false); doClose(mockCloseable, true, false); } public void testClose_closeableWithEatenException() throws IOException { // make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/lifecycle/internal/stub/DefaultLifecyclesStub.java
import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import static org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** */ public class DefaultLifecyclesStub { public static DefaultLifecycles createDefaultLifecycles() throws ComponentLookupException {
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
private ByteArrayInputStream buffer; @SuppressWarnings("DoNotMock") @Override protected void setUp() throws Exception { super.setUp(); hasher = mock(Hasher.class); hashFunction = mock(HashFunction.class); buffer = new ByteArrayInputStream(testBytes); when(hashFunction.newHasher()).thenReturn(hasher); } public void testRead_putSingleByte() throws Exception {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy
} def "#member change should not be reported"() { expect: noViolation(rule) where: member << [Mock(JApiMethod), Mock(JApiField), Mock(JApiImplementedInterface), Mock(JApiConstructor)] } def "nothing should be reported if no changes"() { expect: noViolation(rule) }
Groovy - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Oct 06 19:15:15 GMT 2022 - 4K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilterTest.java
import static org.hamcrest.MatcherAssert.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; class ExclusionArtifactFilterTest { private Artifact artifact; private Artifact artifact2; @BeforeEach void setup() { artifact = mock(Artifact.class); when(artifact.getGroupId()).thenReturn("org.apache.maven");
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Aug 29 15:25:58 GMT 2023 - 6K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/internal/transformation/impl/ConsumerPomArtifactTransformerTest.java
class ConsumerPomArtifactTransformerTest { @Test void transform() throws Exception { RepositorySystemSession systemSessionMock = Mockito.mock(RepositorySystemSession.class); SessionData sessionDataMock = Mockito.mock(SessionData.class); when(systemSessionMock.getData()).thenReturn(sessionDataMock); when(sessionDataMock.get(any())).thenReturn(new NoTransformerContext());
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Tue Dec 05 09:23:26 GMT 2023 - 4.3K bytes - Viewed (0) -
docs/works_with_okhttp.md
* [OkHttp Idling Resource](https://github.com/JakeWharton/okhttp-idling-resource): An Espresso IdlingResource for OkHttp. * [okhttp-client-mock](https://github.com/gmazzo/okhttp-client-mock): A simple OKHttp client mock, using a programmable request interceptor. * [OkHttp Profiler](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler): An IntelliJ plugin for monitoring OkHttp calls.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Jun 08 18:15:23 GMT 2022 - 3.8K bytes - Viewed (0) -
src/main/resources/fess_env_thumbnail.properties
# ---------------------------------------------------------- # Mail # ------ # Does it send mock mail? (true: no send actually, logging only) mail.send.mock = false # SMTP server settings for main: host:port mail.smtp.server.main.host.and.port = localhost:25 # The prefix of subject to show test environment or not mail.subject.test.prefix =
Properties - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Mon Feb 12 13:38:57 GMT 2018 - 2.2K bytes - Viewed (0) -
src/main/resources/fess_env_web.properties
# ---------------------------------------------------------- # Mail # ------ # Does it send mock mail? (true: no send actually, logging only) mail.send.mock = false # SMTP server settings for main: host:port mail.smtp.server.main.host.and.port = localhost:25 # The prefix of subject to show test environment or not mail.subject.test.prefix =
Properties - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Mon Jan 29 07:34:32 GMT 2018 - 2.2K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java
import org.apache.maven.session.scope.internal.SessionScope; import org.junit.jupiter.api.Test; import static org.codehaus.plexus.testing.PlexusExtension.getBasedir; import static org.mockito.Mockito.mock; /** */ @Deprecated class ArtifactInstallerTest extends AbstractArtifactComponentTestCase { @Inject private ArtifactInstaller artifactInstaller; @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.1K bytes - Viewed (0)