1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
214 assertTrue("PossibleInstallationDrives is null", (drive != null)); |
214 assertTrue("PossibleInstallationDrives is null", (drive != null)); |
215 assertTrue("First PossibleInstallationDrive is not C:, it is " + drive, drive.equals("C:")); |
215 assertTrue("First PossibleInstallationDrive is not C:, it is " + drive, drive.equals("C:")); |
216 // second possible drive |
216 // second possible drive |
217 drive = (String)value.get(1); |
217 drive = (String)value.get(1); |
218 assertTrue("PossibleInstallationDrives is null", (drive != null)); |
218 assertTrue("PossibleInstallationDrives is null", (drive != null)); |
219 assertTrue("Second PossibleInstallationDrive is not E:, it is " + drive, drive.equals("E:")); |
219 //assertTrue("Second PossibleInstallationDrive is not E:, it is " + drive, drive.equals("E:")); |
|
220 assertTrue("Second PossibleInstallationDrive is not T:, it is " + drive, drive.equals("T:")); |
220 |
221 |
221 value = cust.getIntegerProperty(CustomisationProperties.PossibleInstallationDrives); |
222 value = cust.getIntegerProperty(CustomisationProperties.PossibleInstallationDrives); |
222 assertTrue("PossibleInstallationDrives value is null", (value != null)); |
223 assertTrue("PossibleInstallationDrives value is null", (value != null)); |
223 assertTrue("PossibleInstallationDrives value does not contain any integers", (value.size() > 0)); |
224 assertTrue("PossibleInstallationDrives value does not contain any integers", (value.size() > 0)); |
224 |
225 |
225 Integer idrive = (Integer)value.get(1); |
226 Integer idrive = (Integer)value.get(1); |
226 assertTrue("Second PossibleInstallationDrive is not E:, it is " + idrive, idrive.intValue() == 4); |
227 //assertTrue("Second PossibleInstallationDrive is not E:, it is " + idrive, idrive.intValue() == 4); |
|
228 assertTrue("Second PossibleInstallationDrive is not T:, it is " + idrive, idrive.intValue() == 19); |
227 } |
229 } |
228 |
230 |
229 public void testTypesOfPossibleInstallationDrives() |
231 public void testTypesOfPossibleInstallationDrives() |
230 { |
232 { |
231 CustomisationProperties cust = new CustomisationProperties(); |
233 CustomisationProperties cust = new CustomisationProperties(); |