public abstract class AbstractControl_PTest extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractControl_PTest.TestObservableValue
Helper Interface for mocking.
|
Modifier and Type | Field and Description |
---|---|
protected ViewModelContext |
context |
protected static String |
CUSTOM_VARIANT |
protected EMFFormsDatabinding |
databindingService |
protected EMFFormsLabelProvider |
labelProvider |
protected AbstractControlSWTRenderer<VControl> |
renderer |
protected org.eclipse.swt.widgets.Shell |
shell |
protected VTViewTemplateProvider |
templateProvider |
protected VControl |
vControl |
Constructor and Description |
---|
AbstractControl_PTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
dispose() |
protected void |
labelServiceUsage()
Tests whether the
EMFFormsLabelProvider is used to get the labels of a control. |
protected abstract void |
mockControl() |
protected void |
mockControl(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature) |
protected void |
mockDatabindingIsUnsettable() |
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell gridCell) |
protected void |
renderLabel(String text) |
void |
renderValidationIconLabelAlignmentLeft() |
void |
renderValidationIconLabelAlignmentNone() |
protected void |
setMockLabelAlignment(LabelAlignment labelAlignment) |
protected void |
setup() |
void |
testGridDescriptionLabelAlignmentLeft() |
void |
testGridDescriptionLabelAlignmentNone() |
protected static final String CUSTOM_VARIANT
protected EMFFormsDatabinding databindingService
protected VTViewTemplateProvider templateProvider
protected AbstractControlSWTRenderer<VControl> renderer
protected EMFFormsLabelProvider labelProvider
protected ViewModelContext context
protected VControl vControl
protected org.eclipse.swt.widgets.Shell shell
protected void mockControl(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature) throws DatabindingFailedException
DatabindingFailedException
protected void mockDatabindingIsUnsettable() throws DatabindingFailedException
DatabindingFailedException
protected void setMockLabelAlignment(LabelAlignment labelAlignment)
protected void setup() throws DatabindingFailedException
DatabindingFailedException
protected void dispose()
public void testGridDescriptionLabelAlignmentNone()
public void testGridDescriptionLabelAlignmentLeft()
public void renderValidationIconLabelAlignmentNone() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
public void renderValidationIconLabelAlignmentLeft() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
protected void renderLabel(String text) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
protected void labelServiceUsage() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, NoLabelFoundException
EMFFormsLabelProvider
is used to get the labels of a control.protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
protected abstract void mockControl() throws DatabindingFailedException
DatabindingFailedException
Copyright © 2016. All rights reserved.