Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for standardOutputOf (0.46 sec)

  1. 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)
  2. 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)
Back to top