< prev index next >

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

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

@@ -35,11 +35,11 @@
 
 /**
  * Basic implementation of a test suite for JUnit tests.
  */
 public class JUnitTestSuite extends TestSuite {
-    public JUnitTestSuite(File root, Map props, ClassLoader loader) throws TestSuite.Fault {
+    public JUnitTestSuite(File root, Map<String, String> props, ClassLoader loader) throws TestSuite.Fault {
         super(root, props, loader);
         try {
             if (getTestsDir() != null)
                 loader = new URLClassLoader(new URL[] {getTestsDir().toURI().toURL()}, loader);
             else loader = ClassLoader.getSystemClassLoader();

@@ -54,11 +54,11 @@
      */
     public TestRunner createTestRunner() {
         // will need to add options to test suite to be passed to runner
         // for ex. - to run setup/teardown, etc...
         try {
-            Class c = loadClass("com.sun.javatest.junit.JUnitTestRunner");
+            Class<?> c = loadClass("com.sun.javatest.junit.JUnitTestRunner");
             JUnitTestRunner tr = (JUnitTestRunner)(c.newInstance());
             tr.setClassLoader(getClassLoader());
             return tr;
         }
         catch (TestSuite.Fault f) {
< prev index next >