1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Generification.

Change-Id: I0bed457d9be84d7585bc7eca8e2d591464b26246
This commit is contained in:
Sergey Prigogin 2017-01-05 12:15:54 -08:00
parent 0514094d09
commit b63342f10e
2 changed files with 4 additions and 5 deletions

View file

@ -16,14 +16,13 @@ import java.net.URL;
* Helper class to launch a test
*/
public class TestPluginLauncher {
public static final String APP_NAME= "org.eclipse.jdt.ui.tests.app"; //$NON-NLS-1$
public static void run(String location, Class testCase, String[] args) {
public static void run(String location, Class<?> testCase, String[] args) {
run(APP_NAME, location, testCase, args);
}
public static void run(String application, String location, Class testCase, String[] args) {
public static void run(String application, String location, Class<?> testCase, String[] args) {
try {
String bootLocation= getBootLocation();
int nArgs= args.length;

View file

@ -44,8 +44,8 @@ class SizingTestPass implements IDialogTestPass {
* @see IDialogTestPass#checkListTexts()
*/
@Override
public ArrayList checkListTexts() {
ArrayList list = new ArrayList(CHECKLIST_SIZE);
public ArrayList<String> checkListTexts() {
ArrayList<String> list = new ArrayList<>(CHECKLIST_SIZE);
list.add("&1) the correct dialog displays.");
list.add("&2) the dialog is an appropriate size for the required resolution (1024x768).");
list.add("&3) the texts are correct and not cut off.");