File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\test\java\hudson\os\SUTester.java.html

1 package hudson.os;
2
3 import hudson.remoting.Callable;
4 import hudson.util.StreamTaskListener;
5
6 import java.io.FileOutputStream;
7
8 /**
9 * @author Kohsuke Kawaguchi
10 */
11 public class SUTester {
12 public static void main(String[] args) throws Throwable {
13 SU.execute(StreamTaskListener.fromStdout(),"kohsuke","bogus",new Callable<Object, Throwable>() {
14 public Object call() throws Throwable {
15 System.out.println("Touching /tmp/x");
16 new FileOutputStream("/tmp/x").close();
17 return null;
18 }
19 });
20 }
21 }
22