You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by me...@apache.org on 2012/07/26 00:56:16 UTC

svn commit: r1365833 - /accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java

Author: medined
Date: Wed Jul 25 22:56:16 2012
New Revision: 1365833

URL: http://svn.apache.org/viewvc?rev=1365833&view=rev
Log:
ACCUMULO-699 - Add comments to TestMain indicating its use.

Modified:
    accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java

Modified: accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java?rev=1365833&r1=1365832&r2=1365833&view=diff
==============================================================================
--- accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java (original)
+++ accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java Wed Jul 25 22:56:16 2012
@@ -16,6 +16,14 @@
  */
 package org.apache.accumulo.start;
 
+/** This program tests that the proper exit code is propogated to the shell.
+ *
+ * $ ./bin/accumulo org.apache.accumulo.start.TestMain
+ * $ ./bin/accumulo org.apache.accumulo.start.TestMain badExit
+ * $ ./bin/accumulo org.apache.accumulo.start.TestMain throw
+ *
+ * The last case tests the proper logging of an exception.
+ */
 public class TestMain {
   public static void main(String[] args) {
     if (args.length > 0) {