Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support change propagation mode customization in view-based tests #571

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

JanWittler
Copy link
Contributor

@JanWittler JanWittler commented Nov 14, 2022

Currently, in our UML <-> Java tests, we run uni- and bidirectional tests by calling setupTransformationDirection before each tests. By default, unidirectional tests are executed. Additionally, each test class has a subclass where the method is overridden to configure bidirectional tests.
In this implementation however is a mistake such that the bidirectional configuration happens only accidentally. More specifically, when overriding a method without again specifying the JUnit annotations (here @BeforeEach), the annotation is lost and thus the method is not executed. In the UML <-> Java test cases, this results in the setupTransformationDirection method not called and thus the default change propagation mode being used which is accidentally the TRANSITIVE_CYCLIC mode when want.

To prevent such accidental configurations, I added an endpoint which can be safely overridden without having to care for JUnit annotations.

@TomWerm TomWerm merged commit 8365c78 into main Nov 14, 2022
@TomWerm TomWerm deleted the fix-test-change-propagation-mode branch November 14, 2022 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants