Class EnumComboViewerRenderer_PTest
- java.lang.Object
-
- org.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
-
- org.eclipse.emf.ecp.view.internal.core.swt.renderer.EnumComboViewerRenderer_PTest
-
public class EnumComboViewerRenderer_PTest extends org.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
Plugin test forEnumComboViewerSWTRenderer
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description EnumComboViewerRenderer_PTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
availableEnumValues()
Tests that the renderer only shows enum literals which fulfill both conditions: they are returned by the item descriptor they are not filtered out by the custom isInputtable annotationvoid
before()
protected void
mockControl()
void
testDatabindingServiceUsageChangeControl()
void
testDatabindingServiceUsageChangeObservable()
void
testDatabindingServiceUsageInitialBinding()
void
testEffectivelyReadOnlyDeactivatesControl()
void
testLabelServiceUsage()
Tests whether theEMFFormsLabelProvider
is used to get the labels of the control.void
testRootDomainModelChanged()
void
testTearDown()
void
updateUIFromModelChange()
Verify that the renderer correctly updates the UI when the model is updated directly as by updating with change sets from an EMFStore repository.-
Methods inherited from class org.eclipse.emfforms.swt.common.test.AbstractControl_PTest
createResource, dispose, getContext, getDatabindingService, getLabelProvider, getRenderer, getShell, getTemplateProvider, getvControl, labelServiceUsage, mockControl, mockDatabindingIsSettableAndChangeable, renderControl, renderLabel, renderValidationIconLabelAlignmentLeft, renderValidationIconLabelAlignmentNone, setContext, setDatabindingService, setLabelProvider, setMockLabelAlignment, setRenderer, setShell, setTemplateProvider, setup, setvControl, testGridDescriptionLabelAlignmentLeft, testGridDescriptionLabelAlignmentNone
-
-
-
-
Method Detail
-
before
public void before() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testTearDown
public void testTearDown()
-
mockControl
protected void mockControl() throws DatabindingFailedException
- Specified by:
mockControl
in classorg.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
- Throws:
DatabindingFailedException
-
testDatabindingServiceUsageInitialBinding
public void testDatabindingServiceUsageInitialBinding() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
testDatabindingServiceUsageChangeObservable
public void testDatabindingServiceUsageChangeObservable() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
testDatabindingServiceUsageChangeControl
public void testDatabindingServiceUsageChangeControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
testLabelServiceUsage
public void testLabelServiceUsage() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException, NoLabelFoundException
Tests whether theEMFFormsLabelProvider
is used to get the labels of the control.
-
testEffectivelyReadOnlyDeactivatesControl
public void testEffectivelyReadOnlyDeactivatesControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
availableEnumValues
public void availableEnumValues() throws DatabindingFailedException
Tests that the renderer only shows enum literals which fulfill both conditions:- they are returned by the item descriptor
- they are not filtered out by the custom isInputtable annotation
- Throws:
DatabindingFailedException
-
updateUIFromModelChange
public void updateUIFromModelChange()
Verify that the renderer correctly updates the UI when the model is updated directly as by updating with change sets from an EMFStore repository.
-
testRootDomainModelChanged
public void testRootDomainModelChanged() throws DatabindingFailedException, NoRendererFoundException, NoPropertyDescriptorFoundExeption
-
-