|
|||||||||
| 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 failed
public 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 failed
public 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 failed
public 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 failed
public void testGetValuePropertyNoApplicableConverter()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
DatabindingFailedException - if the databinding failed
public 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 failed
public 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 failed
public void testGetValuePropertyAllConsidered()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the EMFFormsDatabindingImpl considers all DomainModelReferenceConverters, that are
registered to it, for its conversions.
DatabindingFailedException - if the databinding failed
public void testGetValuePropertyNull()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the method returns the correct result for a null argument.
DatabindingFailedException - if the databinding failed
public void testGetObservableList()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getObservableList(VDomainModelReference, org.eclipse.emf.ecore.EObject)
.
DatabindingFailedException - if the databinding failed
public 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 failed
public 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 failed
public 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 failed
public void testGetListPropertyNoApplicableConverter()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getListProperty(VDomainModelReference,EObject)
.
DatabindingFailedException - if the databinding failed
public 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 failed
public 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 failed
public void testGetListPropertyAllConsidered()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the EMFFormsDatabindingImpl considers all DomainModelReferenceConverters, that are
registered to it, for its conversions.
DatabindingFailedException - if the databinding failed
public void testGetListPropertyNull()
throws DatabindingFailedException
EMFFormsDatabindingImpl.getValueProperty(VDomainModelReference,EObject)
.
Tests whether the method returns the correct result for a null argument.
DatabindingFailedException - if the databinding failed
public 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 | ||||||||