- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,674 for factory (0.17 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/FactoryNamedDomainObjectContainer.java
} /** * <p>Creates a container that instantiates using the given factory.<p> * * @param type The concrete type of element in the container * @param instantiator The instantiator to use to create any other collections based on this one * @param namer The naming strategy to use
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 08:18:33 UTC 2023 - 5.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/AddressTest.kt
import org.junit.jupiter.api.Test class AddressTest { private val factory = TestValueFactory().apply { uriHost = "example.com" uriPort = 80 } @AfterEach fun tearDown() { factory.close() } @Test fun equalsAndHashcode() { val a = factory.newAddress() val b = factory.newAddress() assertThat(b).isEqualTo(a) assertThat(b.hashCode()).isEqualTo(a.hashCode())
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/BaseSerializerFactoryTest.groovy
def factory = new BaseSerializerFactory() def "uses efficient serialization for Strings"() { expect: def serializer = factory.getSerializerFor(String) usesEfficientSerialization("hi", serializer, 3) == "hi" } def "uses efficient serialization for Files"() { expect: def serializer = factory.getSerializerFor(File)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 2.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/JvmBytecodeInterceptorFactoryProvider.java
private static List<JvmBytecodeCallInterceptor.Factory> loadFactories(ClassLoader classLoader, String forPackage) { ImmutableList.Builder<JvmBytecodeCallInterceptor.Factory> factories = ImmutableList.builder(); for (JvmBytecodeCallInterceptor.Factory factory : ServiceLoader.load(JvmBytecodeCallInterceptor.Factory.class, classLoader)) { if (factory.getClass().getPackage().getName().startsWith(forPackage)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 15 09:44:54 UTC 2023 - 4.1K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KotlinFirReferenceContributor.kt
registerProvider(factory = ::KaFirForLoopInReference) registerProvider(factory = ::KaFirInvokeFunctionReference) registerProvider(factory = ::KaFirPropertyDelegationMethodsReference) registerProvider(factory = ::KaFirDestructuringDeclarationReference) registerProvider(factory = ::KaFirArrayAccessReference) registerProvider(factory = ::KaFirConstructorDelegationReference)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon Jun 10 20:18:28 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/testng/TestNGListenerAdapterFactorySpec.groovy
when: ITestListener listener1 = factory.createAdapter(listener); ITestListener listener2 = factory.createAdapter(listener); ITestListener differentListener = factory.createAdapter(otherListener); then: listener1.equals(listener2) && listener1.hashCode() == listener2.hashCode() !listener1.equals(listener) !listener1.equals(differentListener)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/software/publish/src/test/groovy/org/gradle/api/publish/internal/DefaultPublicationContainerTest.groovy
given: Publication pub = publication("test") NamedDomainObjectFactory<Publication> factory = Mock() container.registerFactory(Publication, factory) when: container.create("name", Publication) { value = 2 } then: 1 * factory.create("name") >> pub and: container.getByName("test") == pub pub.value == 2 }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 3.2K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFilePropertyFactoryTest.groovy
@Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) TestFile projectDir DefaultFilePropertyFactory factory def setup() { projectDir = tmpDir.createDir("project") factory = new DefaultFilePropertyFactory(Stub(PropertyHost), TestFiles.resolver(projectDir), TestFiles.fileCollectionFactory()) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 10.4K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy
def userCodeContext = Mock(UserCodeApplicationContext) def factory = new DefaultProblemDiagnosticsFactory(DefaultFailureFactory.withDefaultClassifier(), locationAnalyzer, userCodeContext, 2) def "uses caller's stack trace to calculate problem location"() { given: def location = Stub(Location) def stream = factory.newStream() when: def diagnostics = stream.forCurrentCaller()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:15:42 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFileCollectionFactoryTest.groovy
@ClassRule @Shared TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass()) def factory = new DefaultFileCollectionFactory(TestFiles.pathToFileResolver(tmpDir.testDirectory), TestFiles.taskDependencyFactory(), TestFiles.directoryFileTreeFactory(), Stub(Factory), Stub(PropertyHost), TestFiles.fileSystem()) def "lazily queries contents of collection created from MinimalFileSet"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.9K bytes - Viewed (0)