Class EMFFormsKeyAttributeDMRExpander_Test
- java.lang.Object
-
- org.eclipse.emfforms.internal.core.services.domainexpander.keyattribute.EMFFormsKeyAttributeDMRExpander_Test
-
public class EMFFormsKeyAttributeDMRExpander_Test extends java.lang.Object
JUnit test cases forEMFFormsKeyAttributeDMRExpander
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description EMFFormsKeyAttributeDMRExpander_Test()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Creates a newEMFFormsKeyAttributeDMRExpander
and mocks its required services for every test case.void
tearDown()
void
testIsApplicable()
void
testIsApplicableNull()
void
testIsApplicableWrongReferenceType()
void
testPrepareDomainObjectBothNull()
void
testPrepareDomainObjectObjectNull()
void
testPrepareDomainObjectReferenceNull()
void
testPrepareDomainObjectWrongReferenceType()
-
-
-
Method Detail
-
setUp
public void setUp()
Creates a newEMFFormsKeyAttributeDMRExpander
and mocks its required services for every test case.
-
tearDown
public void tearDown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testIsApplicable
public void testIsApplicable()
-
testIsApplicableNull
public void testIsApplicableNull()
-
testIsApplicableWrongReferenceType
public void testIsApplicableWrongReferenceType()
-
testPrepareDomainObjectReferenceNull
public void testPrepareDomainObjectReferenceNull() throws EMFFormsExpandingFailedException
Test method forEMFFormsKeyAttributeDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectObjectNull
public void testPrepareDomainObjectObjectNull() throws EMFFormsExpandingFailedException
Test method forEMFFormsKeyAttributeDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectBothNull
public void testPrepareDomainObjectBothNull() throws EMFFormsExpandingFailedException
Test method forEMFFormsKeyAttributeDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
testPrepareDomainObjectWrongReferenceType
public void testPrepareDomainObjectWrongReferenceType() throws EMFFormsExpandingFailedException
Test method forEMFFormsKeyAttributeDMRExpander.prepareDomainObject(org.eclipse.emf.ecp.view.spi.model.VDomainModelReference, org.eclipse.emf.ecore.EObject)
.- Throws:
EMFFormsExpandingFailedException
-
-