PalladioSimulator / Palladio-Editors-Sirius

Sirius-based editors for models of the Palladio Component Model (PCM).
Eclipse Public License 2.0
5 stars 4 forks source link

Editors 225 tests #42

Closed jolehmann closed 2 years ago

jolehmann commented 2 years ago

For the new AnchorProviders of Issue 225, an AnchorProviderTest was implemented that extends SiriusDiagramTestCase and must be run as a JUnit plug-in test.

For all 11 possible Connectors of an Assembly Diagram the returned AnchorPoints are compared with the desired Point-Locations. Furthermore the AnchorPoints are compared with the actual EdgeEndPoints, which are rendered for each Connector. The whole implemented code follows the palladio code conventions.

To include the test as a JUnit Plug-in Test in the mvn building process, the tycho surefire plugin and additional necessary resources are included in the .pom of the tests.

During testing an error was found in the calculation of the OffsetDecorator, where internal "double-->int" casts created problems. This Fix has its own commit and can be used seperately if needed: ab944e651b45f7244a124a35cfcef1f0a25b2efc