Heh... this should be used in the system-level tests: $ ./bin/accumulo org.apache.accumulo.start.TestMain $ ./bin/accumulo org.apache.accumulo.start.TestMain badExit $ ./bin/accumulo org.apache.accumulo.start.TestMain throw
Each case tests proper exit code propagated to the shell, the last case tests the proper logging of an exception. -Eric On Sun, Mar 11, 2012 at 9:44 PM, David Medinets <[email protected]>wrote: > This is the file contents. Where there plans or intentions to make it > into something more? > > package org.apache.accumulo.start; > > public class TestMain { > public static void main(String[] args) { > if (args.length > 0) { > if (args[0].equals("success")) > System.exit(0); > if (args[0].equals("throw")) > throw new RuntimeException("This is an exception"); > } > System.exit(-1); > } > } >
