org.eclipse.emf.ecp.view.custom.ui.swt.test
Class ECPAbstractCustomControlSWT_PTest

java.lang.Object
  extended by org.eclipse.emf.ecp.view.custom.ui.swt.test.ECPAbstractCustomControlSWT_PTest

public class ECPAbstractCustomControlSWT_PTest
extends Object

Author:
Jonas

Constructor Summary
ECPAbstractCustomControlSWT_PTest()
           
 
Method Summary
 Set<VFeaturePathDomainModelReference> createEditableFeatures()
           
 Set<VDomainModelReference> createFeatures()
           
 Set<VFeaturePathDomainModelReference> createReferencedFeatures()
           
 void init()
           
 void testCreateContentControl()
          Test method for ECPAbstractCustomControlSWT.renderControl(SWTGridCell, org.eclipse.swt.widgets.Composite) .
 void testCreateControl()
          Test method for ECPAbstractCustomControlSWT.renderControl(SWTGridCell,org.eclipse.swt.widgets.Composite) .
 void testCreateValidationLabel()
           
 void testCustomControlGetHelp()
           
 void testCustomControlGetHelpWrongFeature()
           
 void testCustomControlGetLabel()
           
 void testCustomControlGetLabelWrongFeature()
           
 void testDispose()
          Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#dispose().
 void testDisposeCustomControl()
          Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#disposeCustomControl().
 void testGetAddImage()
           
 void testGetDefaultImage()
           
 void testGetDeleteImage()
           
 void testGetEditableFeatures()
          Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#getECPCustomControlFeatures() .
 void testGetHelper()
          Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#getHelper().
 void testGetHelpImage()
           
 void testGetValidationErrorImage()
           
 void testHandleContentValidation()
          Test method for org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT#handleContentValidation(int, org.eclipse.emf.ecore.EStructuralFeature) .
 void testHandleValidationErrorOnlyEObject()
           
 void testHandleValidationErrorTwoEObject()
           
 void testHandleValidationNotErrorWarning()
           
 void testHandleValidationOfControl()
          Test method for org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT#handleValidation(org.eclipse.emf.common.util.Diagnostic) .
 void testHandleValidationWithLabel()
          Test method for ECPAbstractCustomControlSWT.applyValidation() .
 void testHandleValidationWithLabelOriginalDiagniostic()
           
 void testHandleValidationWithoutLabel()
          Test method for ECPAbstractCustomControlSWT.applyValidation() .
 void testInit()
           
 void testReadonlyCustomControl()
           
 void testResetValidation()
          Test method for org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT#resetValidation().
 void testSetEditable()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECPAbstractCustomControlSWT_PTest

public ECPAbstractCustomControlSWT_PTest()
Method Detail

init

public void init()

createFeatures

public Set<VDomainModelReference> createFeatures()

createReferencedFeatures

public Set<VFeaturePathDomainModelReference> createReferencedFeatures()
Returns:
a test set of VFeaturePathDomainModelReference

createEditableFeatures

public Set<VFeaturePathDomainModelReference> createEditableFeatures()
Returns:
a test set of VFeaturePathDomainModelReference

testCreateControl

public void testCreateControl()
                       throws NoRendererFoundException,
                              NoPropertyDescriptorFoundExeption
Test method for ECPAbstractCustomControlSWT.renderControl(SWTGridCell,org.eclipse.swt.widgets.Composite) .

Throws:
NoPropertyDescriptorFoundExeption
NoRendererFoundException

testCreateValidationLabel

public void testCreateValidationLabel()

testCreateContentControl

public void testCreateContentControl()
                              throws NoRendererFoundException,
                                     NoPropertyDescriptorFoundExeption
Test method for ECPAbstractCustomControlSWT.renderControl(SWTGridCell, org.eclipse.swt.widgets.Composite) .

Throws:
NoPropertyDescriptorFoundExeption
NoRendererFoundException

testHandleValidationWithoutLabel

public void testHandleValidationWithoutLabel()
Test method for ECPAbstractCustomControlSWT.applyValidation() .


testHandleValidationWithLabel

public void testHandleValidationWithLabel()
Test method for ECPAbstractCustomControlSWT.applyValidation() .


testHandleValidationWithLabelOriginalDiagniostic

public void testHandleValidationWithLabelOriginalDiagniostic()

testHandleValidationNotErrorWarning

public void testHandleValidationNotErrorWarning()

testHandleValidationErrorOnlyEObject

public void testHandleValidationErrorOnlyEObject()

testHandleValidationErrorTwoEObject

public void testHandleValidationErrorTwoEObject()

testHandleValidationOfControl

public void testHandleValidationOfControl()
                                   throws NoRendererFoundException,
                                          NoPropertyDescriptorFoundExeption
Test method for org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT#handleValidation(org.eclipse.emf.common.util.Diagnostic) .

Throws:
NoPropertyDescriptorFoundExeption
NoRendererFoundException

testHandleContentValidation

public void testHandleContentValidation()
Test method for org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT#handleContentValidation(int, org.eclipse.emf.ecore.EStructuralFeature) .


testResetValidation

public void testResetValidation()
Test method for org.eclipse.emf.ecp.view.spi.custom.swt.ECPAbstractCustomControlSWT#resetValidation().


testInit

public void testInit()

testGetEditableFeatures

public void testGetEditableFeatures()
Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#getECPCustomControlFeatures() .


testDispose

public void testDispose()
Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#dispose().


testDisposeCustomControl

public void testDisposeCustomControl()
Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#disposeCustomControl().


testGetHelper

public void testGetHelper()
Test method for org.eclipse.emf.ecp.view.spi.custom.ui.ECPAbstractCustomControl#getHelper().


testGetAddImage

public void testGetAddImage()

testGetDeleteImage

public void testGetDeleteImage()

testGetHelpImage

public void testGetHelpImage()

testGetValidationErrorImage

public void testGetValidationErrorImage()

testGetDefaultImage

public void testGetDefaultImage()

testCustomControlGetHelp

public void testCustomControlGetHelp()
                              throws DatabindingFailedException
Throws:
DatabindingFailedException

testCustomControlGetHelpWrongFeature

public void testCustomControlGetHelpWrongFeature()

testCustomControlGetLabel

public void testCustomControlGetLabel()
                               throws DatabindingFailedException
Throws:
DatabindingFailedException

testCustomControlGetLabelWrongFeature

public void testCustomControlGetLabelWrongFeature()

testReadonlyCustomControl

public void testReadonlyCustomControl()
                               throws NoRendererFoundException,
                                      NoPropertyDescriptorFoundExeption,
                                      EMFFormsNoRendererException
Throws:
NoRendererFoundException
NoPropertyDescriptorFoundExeption
EMFFormsNoRendererException

testSetEditable

public void testSetEditable()
                     throws NoRendererFoundException,
                            NoPropertyDescriptorFoundExeption
Throws:
NoRendererFoundException
NoPropertyDescriptorFoundExeption


Copyright © 2015. All Rights Reserved.