blob: 5aeb3b8e32dc26d88bd5e0beeafa2b74e373c6f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*******************************************************************************
* Copyright (c) 2008, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.p2.tests.ui.dialogs;
import org.eclipse.equinox.p2.tests.ui.AbstractProvisioningUITest;
import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.ui.dialogs.PreferencesUtil;
/**
* Tests for the install wizard
*/
public class PreferencePagesTest extends AbstractProvisioningUITest {
private static final String GENERAL = "org.eclipse.equinox.internal.p2.ui.sdk.ProvisioningPreferencePage";
private static final String SITES = "org.eclipse.equinox.internal.p2.ui.sdk.SitesPreferencePage";
private static final String AUTOUPDATES = "org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdatesPreferencePage";
public void testGeneralPage() {
PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, GENERAL, null, null);
dialog.setBlockOnOpen(false);
dialog.open();
try {
// nothing yet
} finally {
dialog.close();
}
}
public void testCopyrightPage() {
PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, SITES, null, null);
dialog.setBlockOnOpen(false);
dialog.open();
try {
// nothing yet
} finally {
dialog.close();
}
}
public void testLicensePage() {
PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, AUTOUPDATES, null, null);
dialog.setBlockOnOpen(false);
dialog.open();
try {
// nothing yet
} finally {
dialog.close();
}
}
}
|