Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for jarClassPathWith (0.27 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/TestWithClassPath.kt

    import java.io.File
    
    import kotlin.reflect.KClass
    
    
    open class TestWithClassPath : TestWithTempFiles() {
    
        protected
        fun jarClassPathWith(vararg classes: KClass<*>): ClassPath =
            jarClassPathWith("cp.jar", *classes)
    
        protected
        fun jarClassPathWith(path: String, vararg classes: KClass<*>): ClassPath = classPathOf(
            file(path).also { jar ->
                zipTo(jar, classEntriesFor(classes))
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/TypeAccessibilityProviderTest.kt

            val genericTypeWithPrimitiveComponent = SchemaType.of<PublicGenericType<String>>()
            assertThat(
                accessibilityFor(
                    genericTypeWithPrimitiveComponent,
                    classPath = jarClassPathWith(PublicGenericType::class)
                ),
                equalTo(accessible(genericTypeWithPrimitiveComponent))
            )
        }
    
        @Test
        fun `internal Kotlin type is inaccessible because NonPublic`() {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaTest.kt

            val genericType = SchemaType.of<PublicGenericType<PublicComponentType>>()
    
            val projectSchema = availableProjectSchemaFor(
                schemaWithExtensions("generic" to genericType),
                jarClassPathWith(PublicGenericType::class, PublicComponentType::class)
            )
    
            assertThat(
                projectSchema.extension("generic").type,
                equalTo(accessible(genericType))
            )
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/codegen/GradleApiExtensionsTest.kt

            verify(logger, atMost(1)).isDebugEnabled
            verifyNoMoreInteractions(logger)
        }
    
        private
        fun apiJarsWith(vararg classes: KClass<*>): List<File> =
            jarClassPathWith("gradle-api.jar", *classes, org.gradle.api.Generated::class).asFiles
    
        private
        fun fixturesApiMetadataJar(): File =
            file("gradle-api-metadata.jar").also { file ->
                JarOutputStream(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:08 UTC 2023
    - 22.3K bytes
    - Viewed (0)
Back to top