public class EMFFormsDatabindingImpl_Test extends Object
EMFFormsDatabindingImpl
.Constructor and Description |
---|
EMFFormsDatabindingImpl_Test() |
public void setUp()
public void tearDown()
public void testGetObservableValue() throws DatabindingFailedException
EMFFormsDatabindingImpl.getObservableValue(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.DatabindingFailedException
- if the databinding failedpublic void testGetObservableValueNullBoth() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.
DatabindingFailedException
- if the databinding failedpublic void testGetObservableValueNullDomainModelReference() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.
DatabindingFailedException
- if the databinding failedpublic void testGetObservableValueNullObject() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.
DatabindingFailedException
- if the databinding failedpublic void testGetValuePropertyNoApplicableConverter() throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.DatabindingFailedException
- if the databinding failedpublic void testGetValuePropertyOneApplicable() throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the correct converter is used when one is applicable and one is not.DatabindingFailedException
- if the databinding failedpublic void testGetValuePropertyTwoApplicable() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.DatabindingFailedException
- if the databinding failedpublic void testGetValuePropertyAllConsidered() throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the EMFFormsDatabindingImpl
considers all DomainModelReferenceConverterEMF
s, that
are
registered to it, for its conversions.DatabindingFailedException
- if the databinding failedpublic void testGetValuePropertyNull() throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the method returns the correct result for a null argument.
DatabindingFailedException
- if the databinding failedpublic void testGetObservableList() throws DatabindingFailedException
EMFFormsDatabindingImpl.getObservableList(VDomainModelReference, org.eclipse.emf.ecore.EObject)
.DatabindingFailedException
- if the databinding failedpublic void testGetObservableListNullBoth() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.
DatabindingFailedException
- if the databinding failedpublic void testGetObservableListNullDomainModelReference() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.
DatabindingFailedException
- if the databinding failedpublic void testGetObservableListNullObject() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.
DatabindingFailedException
- if the databinding failedpublic void testGetListPropertyNoApplicableConverter() throws DatabindingFailedException
EMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
.DatabindingFailedException
- if the databinding failedpublic void testGetListPropertyOneApplicable() throws DatabindingFailedException
EMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
.
Tests whether the correct converter is used when one is applicable and one is not.DatabindingFailedException
- if the databinding failedpublic void testGetListPropertyTwoApplicable() throws DatabindingFailedException
EMFFormsDatabindingImpl.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.DatabindingFailedException
- if the databinding failedpublic void testGetListPropertyAllConsidered() throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the EMFFormsDatabindingImpl
considers all DomainModelReferenceConverter
s, that are
registered to it, for its conversions.DatabindingFailedException
- if the databinding failedpublic void testGetListPropertyNull() throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the method returns the correct result for a null argument.
DatabindingFailedException
- if the databinding failedpublic void testRemoveDomainModelReferenceConverter() throws DatabindingFailedException
EMFFormsDatabindingImpl.removeDomainModelReferenceConverter(DomainModelReferenceConverterEMF)
.DatabindingFailedException
- if the databinding failedpublic void testGetSettingNoApplicableConverter() throws DatabindingFailedException
DatabindingFailedException
public void testGetSettingPropertyOneApplicable() throws DatabindingFailedException
DatabindingFailedException
public void testGetSettingPropertyTwoApplicable() throws DatabindingFailedException
DatabindingFailedException
public void testGetSettingPropertyAllConsidered() throws DatabindingFailedException
DatabindingFailedException
public void testGetSettingPropertyNull() throws DatabindingFailedException
DatabindingFailedException
Copyright © 2016. All rights reserved.