Class EUnitModelComparisonTests
- java.lang.Object
-
- org.eclipse.epsilon.workflow.test.WorkflowTestCase
-
- org.eclipse.epsilon.workflow.tasks.eunit.EUnitTestCase
-
- org.eclipse.epsilon.workflow.tasks.eunit.EUnitModelComparisonTests
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class EUnitModelComparisonTests extends EUnitTestCase
Tests for the EUnit model comparison assertions. Since these depend on the registered model comparators, this test should be run as a JUnit plug-in test.- Author:
- Antonio Garcia-Dominguez
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.workflow.tasks.eunit.EUnitTestCase
ANT_BUILD_FILE, BASE_DIR
-
-
Constructor Summary
Constructors Constructor Description EUnitModelComparisonTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bothModelsAreEmpty()
void
bothModelsAreEmptyNotEquals()
void
compareEMFInMemoryModels()
void
compareEMFWithEMF()
void
compareEMFWithEMFCopy()
void
compareEMFWithEMFUsingGeneratedModels()
void
compareEMFWithEMFWithModelReferences()
void
inlineHutnModelsCanBeCompared()
void
leftModelIsEmpty()
void
leftModelIsEmptyNotEquals()
void
rightModelIsEmpty()
void
rightModelIsEmptyNotEquals()
void
runTarget(java.io.File buildFile, java.lang.String targetName)
Runs the specified target in the provided Ant buildfile.void
umlAgainstItself()
-
Methods inherited from class org.eclipse.epsilon.workflow.tasks.eunit.EUnitTestCase
addTaskDefinitionsTo, checkOutput, cleanUp, error, fatalError, warning
-
Methods inherited from class org.eclipse.epsilon.workflow.test.WorkflowTestCase
assertContains
-
-
-
-
Method Detail
-
runTarget
public void runTarget(java.io.File buildFile, java.lang.String targetName) throws org.apache.tools.ant.BuildException, java.io.IOException
Description copied from class:WorkflowTestCase
Runs the specified target in the provided Ant buildfile. Only some tasks are available: check the source code for details.- Overrides:
runTarget
in classWorkflowTestCase
- Parameters:
buildFile
- Ant buildfile to be run.targetName
- Name of the target to be run.- Throws:
org.apache.tools.ant.BuildException
- The build failed.java.io.IOException
-
compareEMFWithEMF
public void compareEMFWithEMF() throws java.lang.Exception
- Throws:
java.lang.Exception
-
compareEMFWithEMFWithModelReferences
public void compareEMFWithEMFWithModelReferences() throws java.lang.Exception
- Throws:
java.lang.Exception
-
compareEMFWithEMFUsingGeneratedModels
public void compareEMFWithEMFUsingGeneratedModels() throws java.lang.Exception
- Throws:
java.lang.Exception
-
compareEMFWithEMFCopy
public void compareEMFWithEMFCopy() throws java.lang.Exception
- Throws:
java.lang.Exception
-
compareEMFInMemoryModels
public void compareEMFInMemoryModels() throws java.lang.Exception
- Throws:
java.lang.Exception
-
leftModelIsEmpty
public void leftModelIsEmpty() throws java.lang.Exception
- Throws:
java.lang.Exception
-
rightModelIsEmpty
public void rightModelIsEmpty() throws java.lang.Exception
- Throws:
java.lang.Exception
-
umlAgainstItself
public void umlAgainstItself() throws java.lang.Exception
- Throws:
java.lang.Exception
-
bothModelsAreEmpty
public void bothModelsAreEmpty() throws java.lang.Exception
- Throws:
java.lang.Exception
-
leftModelIsEmptyNotEquals
public void leftModelIsEmptyNotEquals() throws java.lang.Exception
- Throws:
java.lang.Exception
-
rightModelIsEmptyNotEquals
public void rightModelIsEmptyNotEquals() throws java.lang.Exception
- Throws:
java.lang.Exception
-
bothModelsAreEmptyNotEquals
public void bothModelsAreEmptyNotEquals() throws java.lang.Exception
- Throws:
java.lang.Exception
-
inlineHutnModelsCanBeCompared
public void inlineHutnModelsCanBeCompared() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-