@Test public void testPipedSayManyWords() { try { System.out.println("echo foo bar baz | cowsay"); String expResult = TestUtils.loadExpected("cowsayFooBarBaz.txt"); String[] args = new String[0]; ByteArrayInputStream in = new ByteArrayInputStream("foo bar baz".getBytes()); System.setIn(in); String result = Cowsay.say(args); TestUtils.cowfileCompare(expResult, result); } finally { System.setIn(System.in); } }
public static String say(final String[] args) { return sayOrThink(args, false); }
Cowsay { public static String say(final String[] args) { return sayOrThink(args, false); } }
Cowsay { public static String say(final String[] args) { return sayOrThink(args, false); } private  Cowsay(); }
Cowsay { public static String say(final String[] args) { return sayOrThink(args, false); } private  Cowsay(); static String say(final String[] args); static String think(final String[] args); static void main(final String[] args); }
Cowsay { public static String say(final String[] args) { return sayOrThink(args, false); } private  Cowsay(); static String say(final String[] args); static String think(final String[] args); static void main(final String[] args);  }