|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 package com.symbian.smt.gui.smtwidgets; |
|
17 |
|
18 import static org.junit.Assert.*; |
|
19 import org.eclipse.swt.SWT; |
|
20 import org.eclipse.swt.widgets.Display; |
|
21 import org.eclipse.swt.widgets.Shell; |
|
22 import org.junit.After; |
|
23 import org.junit.Before; |
|
24 import org.junit.Test; |
|
25 |
|
26 import com.symbian.smt.gui.smtwidgets.SystemDefinitionFilesWidget; |
|
27 |
|
28 public class SystemDefinitionFilesWidgetTest { |
|
29 Display display; |
|
30 Shell shell; |
|
31 SystemDefinitionFilesWidget systemDefinitionFilesWidget; |
|
32 |
|
33 // /** |
|
34 // * @throws java.lang.Exception |
|
35 // */ |
|
36 // @Before |
|
37 // public void setUp() throws Exception { |
|
38 // display = new Display(); |
|
39 // shell = new Shell(display); |
|
40 // systemDefinitionFilesWidget = new SystemDefinitionFilesWidget(shell, SWT.NONE); |
|
41 // } |
|
42 // |
|
43 // /** |
|
44 // * @throws java.lang.Exception |
|
45 // */ |
|
46 // @After |
|
47 // public void tearDown() throws Exception { |
|
48 // display.dispose(); |
|
49 // } |
|
50 // |
|
51 // /** |
|
52 // * Test method for {@link com.symbian.smt.gui.smtwidgets.SystemDefinitionFilesWidget#setSystemDefinitions(java.lang.String[])}. |
|
53 // */ |
|
54 // @Test |
|
55 // public final void testSetAndGetSystemDefinitions() { |
|
56 // String[] list = new String[] {"1", "2"}; |
|
57 // |
|
58 // systemDefinitionFilesWidget.setSystemDefinitions(list); |
|
59 // |
|
60 // String[] results = systemDefinitionFilesWidget.getSystemDefinitions(); |
|
61 // |
|
62 // if (results.length != 2) { |
|
63 // fail("The list returned should contain 2 elements"); |
|
64 // } |
|
65 // } |
|
66 } |