- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 487 for Mock (0.01 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 2.8K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy
def doc = new ClassDoc('org.gradle.Class', content, document, classMetaData, null) new ClassDocPropertiesBuilder(javadocConverter, Mock(GenerationListener)).build(doc) new ClassDocMethodsBuilder(javadocConverter, Mock(GenerationListener)).build(doc) doc } then: doc.classProperties.size() == 2 doc.classProperties[0].name == 'block'
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 8.4K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocConverterTest.groovy
import gradlebuild.docs.dsl.source.model.MethodMetaData class JavadocConverterTest extends XmlSpecification { final ClassMetaData classMetaData = Mock() final JavadocLinkConverter linkConverter = Mock() final GenerationListener listener = Mock() final JavadocConverter parser = new JavadocConverter(document, linkConverter) def respectsLineIndentation() { _ * classMetaData.rawCommentText >> '''Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 14.2K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/TypeMetaDataTest.groovy
} def visitsSignature() { TypeMetaData.SignatureVisitor visitor = Mock() when: type.visitSignature(visitor) then: 1 * visitor.visitType('org.gradle.SomeType') 0 * visitor._ } def visitsSignatureForArrayType() { TypeMetaData.SignatureVisitor visitor = Mock() type.arrayDimensions = 2 when:Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 4.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.util.concurrent; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import com.google.common.util.concurrent.UncaughtExceptionHandlers.Exiter; import com.google.common.util.concurrent.UncaughtExceptionHandlers.RuntimeWrapper;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Feb 10 21:03:40 GMT 2025 - 1.3K bytes - Click Count (0) -
impl/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.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 09 20:39:03 GMT 2025 - 28K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mockito; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; /** * Unit tests for the {@link Check} goal class. * Tests the Check-specific functionality including read-only behavior. */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Jun 07 06:22:47 GMT 2025 - 4.9K bytes - Click Count (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilderTest.groovy
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 7.5K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; /** * Unit tests for the {@link ConsoleIcon} enum. * Tests icon rendering with different terminal charsets and fallback behavior. */ @DisplayName("ConsoleIcon")Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Jul 15 09:35:08 GMT 2025 - 6.8K bytes - Click Count (0) -
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);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.1K bytes - Click Count (0)