Skip to main content
summaryrefslogtreecommitdiffstats
blob: eaf0441af049d5f4e050bfeb1ddcbc6648a3087a (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
/*******************************************************************************
 * Copyright (c) 2013 Ericsson AB 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: 
 *     Ericsson AB - initial API and implementation
 ******************************************************************************/
package org.eclipse.equinox.p2.tests.sharedinstall;

import java.io.File;
import java.util.Properties;

//See InitialSharedInstall
public class InitialSharedInstallRealTest extends AbstractSharedInstallTest {

	public InitialSharedInstallRealTest(String name) {
		super(name);
	}

	public void testImportFromPreviousInstall() {
		assertInitialized();
		replaceDotEclipseProductFile(new File(output, getRootFolder()), "p2.automated.test", "1.0.1");
		installVerifierInBase();
		setupReadOnlyInstall();
		reallyReadOnly(readOnlyBase);
		System.out.println(readOnlyBase);
		System.out.println(userBase);

		//Run the verifier in read only mode to ensure that the wizard opens up
		Properties verificationProperties = new Properties();
		verificationProperties.setProperty("checkMigrationWizard", "true");
		verificationProperties.setProperty("checkMigrationWizard.open", "true");
		executeVerifierWithoutSpecifyingConfiguration(verificationProperties);
		removeReallyReadOnly(readOnlyBase);
	}
}

Back to the top