|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emfforms.internal.core.services.databinding.EMFFormsDatabindingImpl_Test
public class EMFFormsDatabindingImpl_Test
This JUnit test tests the correct functionality of EMFFormsDatabindingImpl
.
Constructor Summary | |
---|---|
EMFFormsDatabindingImpl_Test()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EMFFormsDatabindingImpl_Test()
Method Detail |
---|
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 DomainModelReferenceConverter
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(org.eclipse.emfforms.spi.core.services.databinding.DomainModelReferenceConverter)
.
DatabindingFailedException
- if the databinding failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |