- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for redirectStandardErrorTo (0.33 sec)
-
platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/DefaultStandardOutputRedirectorTest.groovy
0 * stdOutListener._ System.out == outputs.stdOutPrintStream System.err == outputs.stdErrPrintStream } def startAndStopRedirectsStdErr() { when: redirector.redirectStandardErrorTo(stdErrListener) redirector.start() System.out.println('this is stdout') System.err.println('this is stderr') redirector.stop() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/redirector/StandardOutputRedirector.java
package org.gradle.api.internal.tasks.testing.redirector; public interface StandardOutputRedirector { /** * Starts redirection of System.out and System.err to the listener attached to * {@link #redirectStandardErrorTo(OutputListener)} and * {@link #redirectStandardOutputTo(OutputListener) */ void start(); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/JULRedirectorTest.groovy
} def "start and stop output with redirection and default logging"() { when: redirector.redirectStandardOutputTo(stdOutListener) redirector.redirectStandardErrorTo(stdErrListener) redirector.start() [Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST].each { logger1.log(it, "Test");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 5.5K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/TestOutputRedirectorTest.groovy
def "starts redirecting output and error"() { when: redirector.setOutputOwner("1") redirector.startRedirecting() then: 1 * redir.redirectStandardErrorTo({ it.dest == TestOutputEvent.Destination.StdErr }) 1 * redir.redirectStandardOutputTo({ it.dest == TestOutputEvent.Destination.StdOut }) then: 1 * redir.start() 0 * _ }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/redirector/DefaultStandardOutputRedirector.java
@Override public void redirectStandardOutputTo(OutputListener stdOutDestination) { stdOut.setDestination(stdOutDestination); } @Override public void redirectStandardErrorTo(OutputListener stdErrDestination) { stdErr.setDestination(stdErrDestination); } @Override public void start() { if (stdOut.destination != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 3K bytes - Viewed (0) -
platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/redirector/TestOutputRedirector.java
public void startRedirecting() { assert outForwarder.outputOwner != null; assert errForwarder.outputOwner != null; redirector.redirectStandardOutputTo(outForwarder); redirector.redirectStandardErrorTo(errForwarder); redirector.start(); } public void stopRedirecting() { redirector.stop(); } public void setOutputOwner(Object testId) { assert testId != null;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 15:59:04 UTC 2024 - 2.7K bytes - Viewed (0)