public class SelectSubclassAndTemplateWizard_PTest extends Object
SelectSubclassAndTemplateWizard
.
Note: The wizard itself would be unit testable but the used selection composites use the LocalizationServiceHelper which only works in a Plugin execution context.
Constructor and Description |
---|
SelectSubclassAndTemplateWizard_PTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
tearDown() |
void |
testBackButton()
Tests that the template selection table gets updated correctly after the back functionality of the wizard was
used.
|
void |
testCancel()
If the wizard is cancelled it should return an empty Optional as a result even if a template was selected by the
user.
|
void |
testGetAvailableTemplates() |
void |
testSubClassAndTemplateSelection()
Tests the standard use case: first selecting an EClass and then a template on the next page.
|
void |
testSubClassSelectionOnly()
Tests that the template selection page is not shown if there is only one template for the selected EClass.
|
void |
testTemplateSelectionOnly()
Test that the sub class selection page is skipped if there is only one selectable
EClass . |
public SelectSubclassAndTemplateWizard_PTest()
public void setUp() throws org.eclipse.swt.SWTException
org.eclipse.swt.SWTException
- if the Shell cannot be instantiatedpublic void tearDown()
public void testSubClassAndTemplateSelection()
public void testTemplateSelectionOnly()
EClass
.public void testSubClassSelectionOnly()
public void testBackButton()
public void testCancel()
public void testGetAvailableTemplates()
Copyright © 2019. All rights reserved.