Class DateTimeControlRenderer_PTest
- java.lang.Object
-
- org.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
-
- org.eclipse.emf.ecp.view.internal.core.swt.renderer.DateTimeControlRenderer_PTest
-
public class DateTimeControlRenderer_PTest extends org.eclipse.emfforms.swt.common.test.AbstractControl_PTest<VControl>
-
-
Constructor Summary
Constructors Constructor Description DateTimeControlRenderer_PTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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_DATEVDateTimeDisplayAttachment
.void
testDateTimeDisplayAttachmentDateOnly()
Tests the date control with a DATE_ONLYVDateTimeDisplayAttachment
.void
testDateTimeDisplayAttachmentTimeOnly()
Tests the date control with a DATE_ONLYVDateTimeDisplayAttachment
.void
testDisableDeactivatesControl()
void
testEffectivelyReadOnly()
void
testEnabledActivatesControl()
void
testLabelServiceUsage()
Tests whether theEMFFormsLabelProvider
is used to get the labels of the control.void
testTearDown()
-
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()
-
renderControlLabelAlignmentNone
public void renderControlLabelAlignmentNone() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
renderControlLabelAlignmentLeft
public void renderControlLabelAlignmentLeft() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
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 ECPRendererException, DatabindingFailedException, NoLabelFoundException
Tests whether theEMFFormsLabelProvider
is used to get the labels of the control.
-
testDateTimeDisplayAttachmentDateAndTime
public void testDateTimeDisplayAttachmentDateAndTime() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the date control with a TIME_AND_DATEVDateTimeDisplayAttachment
. The control should behave the same way as the default one (with no VDateTimeDisplayAttachment set).
-
testDateTimeDisplayAttachmentDateOnly
public void testDateTimeDisplayAttachmentDateOnly() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the date control with a DATE_ONLYVDateTimeDisplayAttachment
. The control should have only the date widget visible.
-
testDateTimeDisplayAttachmentTimeOnly
public void testDateTimeDisplayAttachmentTimeOnly() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
Tests the date control with a DATE_ONLYVDateTimeDisplayAttachment
. The control should have only the time widget visible.
-
testEffectivelyReadOnly
public void testEffectivelyReadOnly() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
testDisableDeactivatesControl
public void testDisableDeactivatesControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
testEnabledActivatesControl
public void testEnabledActivatesControl() throws NoRendererFoundException, NoPropertyDescriptorFoundExeption, DatabindingFailedException
-
-