Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetOut (3.93 sec)

  1. native-image-tests/src/main/kotlin/okhttp3/DotListener.kt

      }
    
      fun install() {
        originalSystemOut = System.out
        originalSystemErr = System.err
    
        System.setOut(object : PrintStream(OutputStream.nullOutputStream()) {})
        System.setErr(object : PrintStream(OutputStream.nullOutputStream()) {})
      }
    
      fun uninstall() {
        originalSystemOut.let {
          System.setOut(it)
        }
        originalSystemErr.let {
          System.setErr(it)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  2. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

        executor = newVirtualThreadPerTaskExecutor()
    
        // Capture non-deterministic but probable sysout warnings of pinned threads
        // https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html
        System.setOut(PrintStream(capturedOut))
      }
    
      @AfterEach
      fun checkForPinning() {
        assertThat(capturedOut.toString()).isEmpty()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 11:15:46 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top