org.eclipse.cdt.managedbuilder.ui.tests
Class TestCustomPageManager

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.cdt.managedbuilder.ui.tests.TestCustomPageManager
All Implemented Interfaces:
junit.framework.Test

public class TestCustomPageManager
extends junit.framework.TestCase

This class is responsible for testing the functionality of the custom page manager (MBSCustomPageManager) that manages custom wizard pages that are provided by ISVs to supplement the pages in the New Project wizards for Managed Build. The idea behind the test plan is pretty simple. There are seven custom wizard pages specified by this plugin. One page has no restrictions placed upon it and thus should always be present. There are two pages which are constrained by different natures respectively, two constrained by different toolchains, and two constrained by different project types. The goal is to change around what options (i.e. nature, project type, toolchain) a hypothetical user would set, and then check to see if the proper pages are displayed in the proper order.


Field Summary
static boolean testFlag
           
 
Constructor Summary
TestCustomPageManager(java.lang.String name)
           
 
Method Summary
 void setUp()
           
static junit.framework.Test suite()
           
 void testMultiplePages()
          Set nature to A, toolchain to C, project type to D.
 void testNatureA()
          Set the nature to "A".
 void testNatureB()
          Set the nature to "B".
 void testOneVisiblePage()
          Test with a setup such that only an unconstrained page should show up.
 void testOperation()
           
 void testProjectTypeD()
          Set the project type to "D".
 void testProjectTypeE()
          Set the project type to "E".
 void testToolchainC()
          Set the toolchain to "C".
 void testToolchainCv20()
          Set the toolchain to "C_2.0.0".
 void testToolchainF()
          Set the toolchain to "F".
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testFlag

public static boolean testFlag
Constructor Detail

TestCustomPageManager

public TestCustomPageManager(java.lang.String name)
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testOneVisiblePage

public void testOneVisiblePage()
Test with a setup such that only an unconstrained page should show up.


testNatureA

public void testNatureA()
Set the nature to "A". Only pages with no contraints or natures set to "A" should show up.


testNatureB

public void testNatureB()
Set the nature to "B". Only pages with no contraints or natures set to "B" should show up.


testToolchainC

public void testToolchainC()
Set the toolchain to "C". Only pages with no contraints or toolchains set to "C" should show up.


testToolchainCv20

public void testToolchainCv20()
Set the toolchain to "C_2.0.0". Only pages with no contraints, or toolchains set to "C", or toolchains set to "C" version 2.0.0 should show up.


testProjectTypeD

public void testProjectTypeD()
Set the project type to "D". Only pages with no contraints or project types set to "D" should show up.


testProjectTypeE

public void testProjectTypeE()
Set the project type to "E". Only pages with no contraints or project types set to "E" should show up.


testToolchainF

public void testToolchainF()
Set the toolchain to "F". Only pages with no contraints or toolchains set to "F" should show up.


testMultiplePages

public void testMultiplePages()
Set nature to A, toolchain to C, project type to D. We should have several pages with different constraints appearing.


testOperation

public void testOperation()
                   throws java.lang.Exception
Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()