-
Notifications
You must be signed in to change notification settings - Fork 3
Transformation Test Models
The EnterpriseArchitectBridge contains a transformation from the EA object model to the papyrus UML meta model. There are several models to test the behavior of the database mapping and transformation.
To create a new model with test cases, follow theses steps:
- Initialize a database, follow these instructions
- Create a (class) model in Enterprise Architect
- Use Liquibase to convert the database into a changelog file
liquibase --driver=com.mysql.jdbc.Driver --changeLogFile=<output-xml-file> --url=<db-server-and-table> --username=<username> --password=<password> --diffTypes=data generateChangeLog
- Copy the changelog file into the cloned project, create a test class
- Remove the error in the changelog and add the code below to the third line of the changelog
<include file="EASchema.changelog.xml" relativeToChangelogFile="true" />
- Use the provided code to generate a XMI-File with the given meta model
- Write your own test code for the given model (or use the provided roundtrip boilerplate)
Simple package and class to test Attributes, Operations and operation parameters.
Contains one package and several class to test generalization and inheritance.
Simple model with one package, one class and one interface to test realization and implementation.
Abstract scenario with five classes and different kinds of associations between them.
This model uses different types of association and special features of associations like multiplicity.
Abstract scenario with nested packages and classes.