- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 594 for mock (0.15 sec)
-
maven-core/src/test/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListenerTest.java
RepositorySystemSession session = mock(RepositorySystemSession.class); when(session.getLocalRepository()).thenReturn(localRepository); Artifact localRepositoryArtifact = mock(Artifact.class); when(localRepositoryArtifact.getFile()).thenReturn(new File(baseDir, "some/path/within")); Artifact nonLocalReposioryArtifact = mock(Artifact.class);
Java - Registered: Sun Apr 14 03:35:08 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FlushablesTest.java
// 'swallowException' when the mock does not throw an exception. setupFlushable(false); doFlush(mockFlushable, false, false); setupFlushable(false); doFlush(mockFlushable, true, false); } public void testFlush_flushableWithEatenException() throws IOException { // make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception on flush.
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java
MockExecutor mock = new MockExecutor(); TestExecutor testExecutor = new TestExecutor(mock); assertFalse(testExecutor.awaitTermination(10, TimeUnit.MILLISECONDS)); mock.assertLastMethodCalled("awaitTermination"); assertFalse(testExecutor.isTerminated()); mock.assertLastMethodCalled("isTerminated"); assertFalse(testExecutor.isShutdown()); mock.assertLastMethodCalled("isShutdown");
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Jan 05 19:41:03 GMT 2023 - 9.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Jan 05 19:41:03 GMT 2023 - 2.5K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/PropertyMetaDataTest.groovy
} def usesSetterToLocateOverriddenPropertyWhenGetterDoesNotOverrideAnything() { MethodMetaData getter = Mock() MethodMetaData setter = Mock() MethodMetaData overriddenSetter = Mock() ClassMetaData overriddenClass = Mock() PropertyMetaData overriddenProperty = Mock() propertyMetaData.getter = getter propertyMetaData.setter = setter when:
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.1K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java
private final ProjectBuilder projectBuilder = mock(ProjectBuilder.class); private final MavenSession session = mock(MavenSession.class); private final MavenExecutionRequest mavenExecutionRequest = mock(MavenExecutionRequest.class); private final ProjectsSelector projectsSelector = new DefaultProjectsSelector(projectBuilder); // Not using mocks for these strategies - a mock would just copy the actual implementation.
Java - Registered: Sun Apr 14 03:35:08 GMT 2024 - Last Modified: Tue Dec 05 09:23:26 GMT 2023 - 27.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessEnv.java
/** * Get the value for the key 'mail.send.mock'. <br> * The value is, e.g. true <br> * comment: Does it send mock mail? (true: no send actually, logging only) * @return The value of found property. (NotNull: if not found, exception but basically no way) */ String getMailSendMock(); /** * Is the property for the key 'mail.send.mock' true? <br> * The value is, e.g. true <br>
Java - Registered: Mon Apr 15 08:04:17 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 9.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/FunnelsTest.java
PrimitiveSink primitiveSink = mock(PrimitiveSink.class); Funnels.byteArrayFunnel().funnel(new byte[] {4, 3, 2, 1}, primitiveSink); verify(primitiveSink).putBytes(new byte[] {4, 3, 2, 1}); } public void testForBytes_null() { assertNullsThrowException(Funnels.byteArrayFunnel()); } public void testForStrings() { PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Fri Oct 02 16:24:50 GMT 2020 - 5.9K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilderTest.groovy
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 7.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java
}; public void testSchedule() { MockExecutor mock = new MockExecutor(); TestExecutor testExecutor = new TestExecutor(mock); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = testExecutor.schedule(DO_NOTHING, 10, TimeUnit.MINUTES); mock.assertLastMethodCalled("scheduleRunnable", 10, TimeUnit.MINUTES);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Dec 16 19:54:45 GMT 2020 - 7.6K bytes - Viewed (0)