- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for standardOutputOf (0.46 sec)
-
platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/Testing.kt
get() = TextUtil.normaliseFileSeparators(path) fun assertStandardOutputOf(expected: String, action: () -> Unit): Unit = assertThat( standardOutputOf(action), equalTo(expected.normaliseLineSeparators()) ) fun standardOutputOf(action: () -> Unit): String = ByteArrayOutputStream().also { val out = System.out try { System.setOut(PrintStream(it, true))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessorsTest.kt
import org.gradle.kotlin.dsl.fixtures.standardOutputOf import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Test class PrintAccessorsTest { abstract class CustomConvention @Test fun `prints accessors for all schema entries`() { assertThat( standardOutputOf { printAccessorsFor(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.7K bytes - Viewed (0)