Class EMFFormsDatabindingImpl_Test
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.databinding.EMFFormsDatabindingImpl_Test
-
public class EMFFormsDatabindingImpl_Test extends java.lang.Object
This JUnit test tests the correct functionality ofEMFFormsDatabindingImpl
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description EMFFormsDatabindingImpl_Test()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp()
Set up that is executed before every test.
-
tearDown
public void tearDown()
-
testGetObservableValue
public void testGetObservableValue() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableValue(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableValueNullBoth
public void testGetObservableValueNullBoth() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableValue(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.Tests whether the method returns the correct result for both arguments being null.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableValueNullDomainModelReference
public void testGetObservableValueNullDomainModelReference() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableValue(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.Tests whether the method returns the correct result for the VDomainModelReference argument being null.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableValueNullObject
public void testGetObservableValueNullObject() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableValue(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.Tests whether the method returns the correct result for the EObject argument being null.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetValuePropertyNoApplicableConverter
public void testGetValuePropertyNoApplicableConverter() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetValuePropertyOneApplicable
public void testGetValuePropertyOneApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when one is applicable and one is not.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetValueProperty_eClass_editingDomain
public void testGetValueProperty_eClass_editingDomain() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testGetValuePropertyTwoApplicable
public void testGetValuePropertyTwoApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when there are two applicable ones with different priorities. Also tests whether the correct result is returned.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetValuePropertyAllConsidered
public void testGetValuePropertyAllConsidered() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether theEMFFormsDatabindingImpl
considers allDomainModelReferenceConverterEMF
s, that are registered to it, for its conversions.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetValuePropertyNull
public void testGetValuePropertyNull() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.Tests whether the method returns the correct result for a null argument.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableList
public void testGetObservableList() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableList(VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableListNullBoth
public void testGetObservableListNullBoth() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableList(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.Tests whether the method returns the correct result for both arguments being null.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableListNullDomainModelReference
public void testGetObservableListNullDomainModelReference() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableList(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.Tests whether the method returns the correct result for the VDomainModelReference argument being null.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetObservableListNullObject
public void testGetObservableListNullObject() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableList(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.Tests whether the method returns the correct result for the EObject argument being null.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetListPropertyNoApplicableConverter
public void testGetListPropertyNoApplicableConverter() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetListPropertyOneApplicable
public void testGetListPropertyOneApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when one is applicable and one is not.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetListPropertyTwoApplicable
public void testGetListPropertyTwoApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when there are two applicable ones with different priorities. Also tests whether the correct result is returned.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetListPropertyAllConsidered
public void testGetListPropertyAllConsidered() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether theEMFFormsDatabindingImpl
considers allDomainModelReferenceConverter
s, that are registered to it, for its conversions.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetListPropertyNull
public void testGetListPropertyNull() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.Tests whether the method returns the correct result for a null argument.
- Throws:
DatabindingFailedException
- if the databinding failed
-
testRemoveDomainModelReferenceConverter
public void testRemoveDomainModelReferenceConverter() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.removeDomainModelReferenceConverter(DomainModelReferenceConverterEMF)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
testGetSettingNoApplicableConverter
public void testGetSettingNoApplicableConverter() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testGetSettingPropertyOneApplicable
public void testGetSettingPropertyOneApplicable() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testGetSettingPropertyTwoApplicable
public void testGetSettingPropertyTwoApplicable() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testGetSettingPropertyAllConsidered
public void testGetSettingPropertyAllConsidered() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testGetSettingPropertyNull
public void testGetSettingPropertyNull() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetObservableValue
public void settings_testGetObservableValue() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableValue(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetValuePropertyNoApplicableConverter
public void settings_testGetValuePropertyNoApplicableConverter() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetValuePropertyOneApplicable
public void settings_testGetValuePropertyOneApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when one is applicable and one is not.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetValueProperty_multipleSegments
public void settings_testGetValueProperty_multipleSegments() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetValuePropertyTwoApplicable
public void settings_testGetValuePropertyTwoApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when there are two applicable ones with different priorities. Also tests whether the correct result is returned.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetValuePropertyAllConsidered
public void settings_testGetValuePropertyAllConsidered() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether theEMFFormsDatabindingImpl
considers allDomainModelReferenceSegmentConverterEMF
s, that are registered to it, for its conversions.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetValueProperty_eClass
public void settings_testGetValueProperty_eClass() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetValueProperty_eClass_editingDomain
public void settings_testGetValueProperty_eClass_editingDomain() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetObservableList
public void settings_testGetObservableList() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getObservableList(VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetListPropertyNoApplicableConverter
public void settings_testGetListPropertyNoApplicableConverter() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetListPropertyOneApplicable
public void settings_testGetListPropertyOneApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when one is applicable and one is not.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetListPropertyTwoApplicable
public void settings_testGetListPropertyTwoApplicable() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
. Tests whether the correct converter is used when there are two applicable ones with different priorities. Also tests whether the correct result is returned.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetListPropertyAllConsidered
public void settings_testGetListPropertyAllConsidered() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
. Tests whether theEMFFormsDatabindingImpl
considers allDomainModelReferenceSegmentConverterEMF
s, that are registered to it, for its conversions.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testRemoveDomainModelReferenceSegmentConverter
public void settings_testRemoveDomainModelReferenceSegmentConverter() throws DatabindingFailedException
Test method forEMFFormsDatabindingImpl.removeDomainModelReferenceSegmentConverter(DomainModelReferenceSegmentConverterEMF)
.- Throws:
DatabindingFailedException
- if the databinding failed
-
settings_testGetSettingNoApplicableConverter
public void settings_testGetSettingNoApplicableConverter() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetSettingPropertyOneApplicable
public void settings_testGetSettingPropertyOneApplicable() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetSettingPropertyTwoApplicable
public void settings_testGetSettingPropertyTwoApplicable() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetSettingPropertyAllConsidered
public void settings_testGetSettingPropertyAllConsidered() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
settings_testGetSettingPropertyNull
public void settings_testGetSettingPropertyNull() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
testResolveSegment
public void testResolveSegment() throws DatabindingFailedException
- Throws:
DatabindingFailedException
-
-