Class EMFFormsIndexDMRExpander_Test
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.domainexpander.index.EMFFormsIndexDMRExpander_Test
-
public class EMFFormsIndexDMRExpander_Test extends java.lang.Object
JUnit tests forEMFFormsIndexDMRExpander
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description EMFFormsIndexDMRExpander_Test()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Creates a newEMFFormsIndexDMRExpander
and mocks its required services for every test case.void
testIsApplicable()
void
testIsApplicableNull()
void
testIsApplicableWrongReferenceType()
void
testPrepareDomainObjectBothNull()
void
testPrepareDomainObjectNoListWithoutPrefixDMR()
void
testPrepareDomainObjectNoListWithPrefixDMR()
void
testPrepareDomainObjectObjectNull()
void
testPrepareDomainObjectReferenceNull()
void
testPrepareDomainObjectWithoutPrefixDMRIndex0()
void
testPrepareDomainObjectWithoutPrefixDMRIndex1()
void
testPrepareDomainObjectWithPrefixDMRIndex0()
void
testPrepareDomainObjectWithPrefixDMRIndex1()
void
testPrepareDomainObjectWrongReferenceType()
-
-
-
Method Detail
-
setUp
public void setUp()
Creates a newEMFFormsIndexDMRExpander
and mocks its required services for every test case.
-
testPrepareDomainObjectReferenceNull
public void testPrepareDomainObjectReferenceNull() throws EMFFormsExpandingFailedException
Test method forEMFFormsIndexDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectObjectNull
public void testPrepareDomainObjectObjectNull() throws EMFFormsExpandingFailedException
Test method forEMFFormsIndexDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectBothNull
public void testPrepareDomainObjectBothNull() throws EMFFormsExpandingFailedException
Test method forEMFFormsIndexDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectWrongReferenceType
public void testPrepareDomainObjectWrongReferenceType() throws EMFFormsExpandingFailedException
Test method forEMFFormsIndexDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectWithPrefixDMRIndex0
public void testPrepareDomainObjectWithPrefixDMRIndex0() throws EMFFormsExpandingFailedException, DatabindingFailedException
-
testPrepareDomainObjectWithPrefixDMRIndex1
public void testPrepareDomainObjectWithPrefixDMRIndex1() throws EMFFormsExpandingFailedException, DatabindingFailedException
-
testPrepareDomainObjectNoListWithPrefixDMR
public void testPrepareDomainObjectNoListWithPrefixDMR() throws EMFFormsExpandingFailedException, DatabindingFailedException
Test method forEMFFormsIndexDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
. Tests whether the correct exception is thrown if the domain model e feature of the prefix dmr does not describe a list.
-
testPrepareDomainObjectNoListWithoutPrefixDMR
public void testPrepareDomainObjectNoListWithoutPrefixDMR() throws EMFFormsExpandingFailedException, DatabindingFailedException
Test method forEMFFormsIndexDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
. Tests whether the correct exception is thrown if the domain model e feature of the index dmr does not describe a list.
-
testPrepareDomainObjectWithoutPrefixDMRIndex0
public void testPrepareDomainObjectWithoutPrefixDMRIndex0() throws EMFFormsExpandingFailedException, DatabindingFailedException
-
testPrepareDomainObjectWithoutPrefixDMRIndex1
public void testPrepareDomainObjectWithoutPrefixDMRIndex1() throws EMFFormsExpandingFailedException, DatabindingFailedException
-
testIsApplicable
public void testIsApplicable()
-
testIsApplicableNull
public void testIsApplicableNull()
-
testIsApplicableWrongReferenceType
public void testIsApplicableWrongReferenceType()
-
-