comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/AbstractTest.java @ 9611:fb3ed8e444ea

Method can be static
author Christian Wimmer <christian.wimmer@oracle.com>
date Wed, 08 May 2013 13:07:41 -0700
parents 07f8d136a05e
children 69d2e4baa215
comparison
equal deleted inserted replaced
9610:ae17e540c5d2 9611:fb3ed8e444ea
47 result.append(s); 47 result.append(s);
48 } 48 }
49 return result.toString(); 49 return result.toString();
50 } 50 }
51 51
52 protected void executeSL(String[] input, String[] expectedOutput, boolean useConsole) { 52 protected static void executeSL(String[] input, String[] expectedOutput, boolean useConsole) {
53 InputStream in = new ByteArrayInputStream(concat(input).getBytes()); 53 InputStream in = new ByteArrayInputStream(concat(input).getBytes());
54 54
55 ByteArrayOutputStream out = new ByteArrayOutputStream(); 55 ByteArrayOutputStream out = new ByteArrayOutputStream();
56 PrintStream printer = new PrintStream(useConsole ? new SplitOutputStream(out, System.err) : out); 56 PrintStream printer = new PrintStream(useConsole ? new SplitOutputStream(out, System.err) : out);
57 PrintStream origErr = System.err; 57 PrintStream origErr = System.err;