sysmodelmgr/com.symbian.smt.gui.unittest/src/com/symbian/smt/gui/wizard/NewProjectWizardSystemDefsPageTest.java
changeset 0 522a326673b6
equal deleted inserted replaced
-1:000000000000 0:522a326673b6
       
     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.wizard;
       
    17 
       
    18 import static org.junit.Assert.*;
       
    19 
       
    20 import org.eclipse.jface.viewers.IStructuredSelection;
       
    21 import org.eclipse.swt.widgets.Display;
       
    22 import org.eclipse.swt.widgets.Shell;
       
    23 import org.junit.After;
       
    24 import org.junit.Before;
       
    25 import org.junit.Test;
       
    26 
       
    27 import com.symbian.smt.gui.wizard.NewProjectWizardSystemDefsPage;
       
    28 
       
    29 public class NewProjectWizardSystemDefsPageTest {
       
    30 	IStructuredSelection selection;
       
    31 	NewProjectWizardSystemDefsPage newProjectWizardSystemDefsPage;
       
    32 	Display display;
       
    33 	Shell shell;
       
    34 	
       
    35 //	/**
       
    36 //	 * @throws java.lang.Exception
       
    37 //	 */
       
    38 //	@Before
       
    39 //	public void setUp() throws Exception {
       
    40 //		display = new Display();
       
    41 //		shell = new Shell(display);
       
    42 //		
       
    43 //		newProjectWizardSystemDefsPage = new NewProjectWizardSystemDefsPage(selection);
       
    44 //		newProjectWizardSystemDefsPage.createControl(shell);
       
    45 //	}
       
    46 //
       
    47 //	/**
       
    48 //	 * @throws java.lang.Exception
       
    49 //	 */
       
    50 //	@After
       
    51 //	public void tearDown() throws Exception {
       
    52 //		display.dispose();
       
    53 //	}
       
    54 //
       
    55 //
       
    56 //	/**
       
    57 //	 * Test method for {@link com.symbian.smt.gui.wizard.NewProjectWizardSystemDefsPage#validModelDefined(java.lang.Boolean)}.
       
    58 //	 */
       
    59 //	@Test
       
    60 //	public final void testValidModelDefined() {
       
    61 //		newProjectWizardSystemDefsPage.validModelDefined(true);
       
    62 //	}
       
    63 //
       
    64 //	/**
       
    65 //	 * Test method for {@link com.symbian.smt.gui.wizard.NewProjectWizardSystemDefsPage#SetSystemDefinitions(java.lang.String[])}.
       
    66 //	 */
       
    67 //	@Test
       
    68 //	public final void testSetAndGetSystemDefinitions() {
       
    69 //		String[] list = new String[] {"1", "2"};
       
    70 //		
       
    71 //		newProjectWizardSystemDefsPage.setSystemDefinitions(list);
       
    72 //		
       
    73 //		String[] results = newProjectWizardSystemDefsPage.getSystemDefinitions();
       
    74 //
       
    75 //		if (results.length != 2) {
       
    76 //			fail("The list returned should contain 2 elements");
       
    77 //		}
       
    78 //	}
       
    79 }