accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From medi...@apache.org
Subject svn commit: r1365833 - /accumulo/trunk/start/src/main/java/org/apache/accumulo/start/TestMain.java
Date Wed, 25 Jul 2012 22:56:16 GMT
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) {



Mime
View raw message