mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Generification.
Change-Id: I0bed457d9be84d7585bc7eca8e2d591464b26246
This commit is contained in:
parent
0514094d09
commit
b63342f10e
2 changed files with 4 additions and 5 deletions
|
@ -16,14 +16,13 @@ import java.net.URL;
|
||||||
* Helper class to launch a test
|
* Helper class to launch a test
|
||||||
*/
|
*/
|
||||||
public class TestPluginLauncher {
|
public class TestPluginLauncher {
|
||||||
|
|
||||||
public static final String APP_NAME= "org.eclipse.jdt.ui.tests.app"; //$NON-NLS-1$
|
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);
|
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 {
|
try {
|
||||||
String bootLocation= getBootLocation();
|
String bootLocation= getBootLocation();
|
||||||
int nArgs= args.length;
|
int nArgs= args.length;
|
||||||
|
|
|
@ -44,8 +44,8 @@ class SizingTestPass implements IDialogTestPass {
|
||||||
* @see IDialogTestPass#checkListTexts()
|
* @see IDialogTestPass#checkListTexts()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ArrayList checkListTexts() {
|
public ArrayList<String> checkListTexts() {
|
||||||
ArrayList list = new ArrayList(CHECKLIST_SIZE);
|
ArrayList<String> list = new ArrayList<>(CHECKLIST_SIZE);
|
||||||
list.add("&1) the correct dialog displays.");
|
list.add("&1) the correct dialog displays.");
|
||||||
list.add("&2) the dialog is an appropriate size for the required resolution (1024x768).");
|
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.");
|
list.add("&3) the texts are correct and not cut off.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue