< prev index next >

src/com/sun/javatest/junit/JUnitBaseInterview.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg


  36 /**
  37  * A basic interview for JUnit test suite.  Doesn't require input from the user.
  38  */
  39 public class JUnitBaseInterview extends BasicInterviewParameters implements Parameters.EnvParameters {
  40 
  41     /** Creates a new instance of JUnitBaseInterview */
  42     public JUnitBaseInterview() throws Fault {
  43         super("junit");
  44     }
  45 
  46     protected Question getEnvFirstQuestion() {
  47         return getEnvSuccessorQuestion();
  48     }
  49 
  50     public EnvParameters getEnvParameters() {
  51         return this;
  52     }
  53 
  54     public TestEnvironment getEnv() {
  55         try {
  56             return new TestEnvironment("junitenv", new HashMap(), "junit");
  57         }
  58         catch (TestEnvironment.Fault f) {
  59            f.printStackTrace();
  60            throw new RuntimeException();
  61         }
  62     }
  63 }


  36 /**
  37  * A basic interview for JUnit test suite.  Doesn't require input from the user.
  38  */
  39 public class JUnitBaseInterview extends BasicInterviewParameters implements Parameters.EnvParameters {
  40 
  41     /** Creates a new instance of JUnitBaseInterview */
  42     public JUnitBaseInterview() throws Fault {
  43         super("junit");
  44     }
  45 
  46     protected Question getEnvFirstQuestion() {
  47         return getEnvSuccessorQuestion();
  48     }
  49 
  50     public EnvParameters getEnvParameters() {
  51         return this;
  52     }
  53 
  54     public TestEnvironment getEnv() {
  55         try {
  56             return new TestEnvironment("junitenv", new HashMap<String, String>(), "junit");
  57         }
  58         catch (TestEnvironment.Fault f) {
  59            f.printStackTrace();
  60            throw new RuntimeException();
  61         }
  62     }
  63 }
< prev index next >