public class DateTimeControlRenderer_PTest extends org.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
Constructor and Description |
---|
DateTimeControlRenderer_PTest() |
Modifier and Type | Method and Description |
---|---|
void |
before() |
protected void |
mockControl() |
void |
renderControlLabelAlignmentLeft() |
void |
renderControlLabelAlignmentNone() |
void |
testDatabindingServiceUsageChangeControl() |
void |
testDatabindingServiceUsageChangeObservable() |
void |
testDatabindingServiceUsageInitialBinding() |
void |
testDateTimeDisplayAttachmentDateAndTime()
Tests the date control with a TIME_AND_DATE
VDateTimeDisplayAttachment . |
void |
testDateTimeDisplayAttachmentDateOnly()
Tests the date control with a DATE_ONLY
VDateTimeDisplayAttachment . |
void |
testDateTimeDisplayAttachmentTimeOnly()
Tests the date control with a DATE_ONLY
VDateTimeDisplayAttachment . |
void |
testDisableDeactivatesControl() |
void |
testEffectivelyReadOnly() |
void |
testEnabledActivatesControl() |
void |
testLabelServiceUsage()
Tests whether the
EMFFormsLabelProvider is used to get the labels of the control. |
void |
testTearDown() |
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
public void before() throws DatabindingFailedException
DatabindingFailedException
public void testTearDown()
public void renderControlLabelAlignmentNone() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
public void renderControlLabelAlignmentLeft() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
protected void mockControl() throws DatabindingFailedException
mockControl
in class org.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
DatabindingFailedException
public void testDatabindingServiceUsageInitialBinding() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
public void testDatabindingServiceUsageChangeObservable() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
public void testDatabindingServiceUsageChangeControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
public void testLabelServiceUsage() throws ECPRendererException, DatabindingFailedException, NoLabelFoundException
EMFFormsLabelProvider
is used to get the labels of the control.public void testDateTimeDisplayAttachmentDateAndTime() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
VDateTimeDisplayAttachment
.
The control should behave the same way as the default one (with no VDateTimeDisplayAttachment set).public void testDateTimeDisplayAttachmentDateOnly() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
VDateTimeDisplayAttachment
.
The control should have only the date widget visible.public void testDateTimeDisplayAttachmentTimeOnly() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
VDateTimeDisplayAttachment
.
The control should have only the time widget visible.public void testEffectivelyReadOnly() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
public void testDisableDeactivatesControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
public void testEnabledActivatesControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Copyright © 2019. All rights reserved.