JML

org.multijava.util.testing
Class Main

java.lang.Object
  extended byorg.multijava.util.testing.Main

public class Main
extends Object

This class provides utilities for automatically generating JUnit test suites.


Nested Class Summary
(package private)  class Main.SuiteWriter
           
 
Field Summary
private static String DEFAULT_OUT
           
private  String[] inClasses
           
private  TestingOptions options
           
private  Main.SuiteWriter out
           
private static String SUITE_NAME
           
private static int TAB
           
 
Constructor Summary
Main()
           
 
Method Summary
(package private)  String fixPackage(String pack)
           
(package private)  boolean isSuite(String testCase)
           
static void main(String[] args)
          Accept command line arguments
 boolean parseArguments(String[] args)
          Processes command line arguments and sets up object state.
 boolean run(String[] args)
          Generate JUnit test suite based on the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

private TestingOptions options

inClasses

private String[] inClasses

out

private Main.SuiteWriter out

TAB

private static final int TAB

DEFAULT_OUT

private static final String DEFAULT_OUT

SUITE_NAME

private static final String SUITE_NAME
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
Accept command line arguments


run

public boolean run(String[] args)
Generate JUnit test suite based on the given arguments. See file TestingOptions.opt for more information on arguments.

Returns:
true iff generation is successful

parseArguments

public boolean parseArguments(String[] args)
Processes command line arguments and sets up object state.


fixPackage

String fixPackage(String pack)

isSuite

boolean isSuite(String testCase)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.