< prev index next >

test/jdk/sun/tools/jhsdb/heapconfig/TmtoolTestScenario.java

Print this page
rev 51731 : imported patch 8210732


  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 import java.io.BufferedReader;
  24 import java.io.IOException;
  25 import java.io.InputStreamReader;
  26 import java.math.BigDecimal;
  27 import java.util.ArrayList;
  28 import java.util.Arrays;
  29 import java.util.HashMap;
  30 import java.util.List;
  31 import java.util.Map;
  32 import java.util.logging.Level;
  33 import java.util.logging.Logger;
  34 
  35 import jdk.test.lib.apps.LingeredApp;
  36 import jdk.test.lib.JDKToolLauncher;
  37 import jdk.testlibrary.Utils;
  38 
  39 public class TmtoolTestScenario {
  40 
  41     private final ArrayList<String> toolOutput = new ArrayList<String>();
  42     private LingeredApp theApp = null;
  43     private final String toolName;
  44     private final String[] toolArgs;
  45 
  46     /**
  47      *  @param toolName - name of tool to test
  48      *  @param toolArgs - tool arguments
  49      *  @return the object
  50      */
  51     public static TmtoolTestScenario create(String toolName, String... toolArgs) {
  52         return new TmtoolTestScenario(toolName, toolArgs);
  53     }
  54 
  55     /**
  56      * @return STDOUT of tool
  57      */




  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 import java.io.BufferedReader;
  24 import java.io.IOException;
  25 import java.io.InputStreamReader;
  26 import java.math.BigDecimal;
  27 import java.util.ArrayList;
  28 import java.util.Arrays;
  29 import java.util.HashMap;
  30 import java.util.List;
  31 import java.util.Map;
  32 import java.util.logging.Level;
  33 import java.util.logging.Logger;
  34 
  35 import jdk.test.lib.apps.LingeredApp;
  36 import jdk.test.lib.JDKToolLauncher;
  37 import jdk.test.lib.Utils;
  38 
  39 public class TmtoolTestScenario {
  40 
  41     private final ArrayList<String> toolOutput = new ArrayList<String>();
  42     private LingeredApp theApp = null;
  43     private final String toolName;
  44     private final String[] toolArgs;
  45 
  46     /**
  47      *  @param toolName - name of tool to test
  48      *  @param toolArgs - tool arguments
  49      *  @return the object
  50      */
  51     public static TmtoolTestScenario create(String toolName, String... toolArgs) {
  52         return new TmtoolTestScenario(toolName, toolArgs);
  53     }
  54 
  55     /**
  56      * @return STDOUT of tool
  57      */


< prev index next >