com.autonomousapps.kit.gradle.Java.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-testkit-support Show documentation
Show all versions of gradle-testkit-support Show documentation
A DSL for building test fixtures with Gradle TestKit
package com.autonomousapps.kit.gradle
import com.autonomousapps.kit.render.Element
import com.autonomousapps.kit.render.Scribe
public class Java @JvmOverloads constructor(
public val features: List = emptyList(),
) : Element.Block {
override val name: String = "java"
override fun render(scribe: Scribe): String = scribe.block(this) { s ->
features.forEach { it.render(s) }
}
public companion object {
@JvmStatic
public fun ofFeatures(features: List): Java = Java(features)
@JvmStatic
public fun ofFeatures(vararg features: Feature): Java = ofFeatures(features.toList())
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy