Skip to content

Transformation Test Models

Schick edited this page Aug 29, 2017 · 13 revisions

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.

Workflow

To create a new model with test cases, follow theses steps:

  1. Initialize a database, follow these instructions
  2. Create a (class) model in Enterprise Architect
  3. 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
    
  4. Copy the changelog file into the cloned project, create a test class
  5. 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" />
    
  6. Use the provided code to generate a XMI-File with the given meta model
  7. Write your own test code for the given model (or use the provided roundtrip boilerplate)

Test Models

People

Simple package and class to test Attributes, Operations and operation parameters.

People Diagram

Vehicles

Contains one package and several class to test generalization and inheritance.

Vehicles Diagram

Portable

Simple model with one package, one class and one interface to test realization and implementation.

Portable Diagram Portable Diagram EA

SimpleAssociation

Abstract scenario with five classes and different kinds of associations between them.

Simple Association Diagram Simple Association Diagram EA

AdvancedAssociation

This model uses different types of association and special features of associations like multiplicity.

Advanced Association Diagram Advanced Association Diagram EA

Nested

Abstract scenario with nested packages and classes.

Nested Diagram Nested Diagram EA