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:
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
compareEMFInMemoryModelsWithCustomComparator()
void
compareEMFWithEMF()
void
compareEMFWithEMFCopy()
void
compareEMFWithEMFUsingGeneratedModels()
void
compareEMFWithEMFWithModelReferences()
void
inlineHutnModelsCanBeCompared()
void
leftModelIsEmpty()
void
leftModelIsEmptyNotEquals()
void
rightModelIsEmpty()
void
rightModelIsEmptyNotEquals()
void
runTarget(File buildFile, 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(File buildFile, String targetName) throws org.apache.tools.ant.BuildException, 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.IOException
-
compareEMFWithEMFWithModelReferences
public void compareEMFWithEMFWithModelReferences() throws Exception
- Throws:
Exception
-
compareEMFWithEMFUsingGeneratedModels
public void compareEMFWithEMFUsingGeneratedModels() throws Exception
- Throws:
Exception
-
compareEMFInMemoryModelsWithCustomComparator
public void compareEMFInMemoryModelsWithCustomComparator() throws Exception
- Throws:
Exception
-
leftModelIsEmptyNotEquals
public void leftModelIsEmptyNotEquals() throws Exception
- Throws:
Exception
-
rightModelIsEmptyNotEquals
public void rightModelIsEmptyNotEquals() throws Exception
- Throws:
Exception
-
bothModelsAreEmptyNotEquals
public void bothModelsAreEmptyNotEquals() throws Exception
- Throws:
Exception
-
-