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

Pcm2Java reactions: Empty constructor not removed after OperationRequiredRole removed from Component #252

Open
h4uges opened this issue Oct 31, 2022 · 0 comments
Labels
Java Related to Java Applications or Java Domain PCM Related to PCM Applications or PCM Domain

Comments

@h4uges
Copy link
Contributor

h4uges commented Oct 31, 2022

An OperationRequiredRole is mapped to a constructor containing an assignment. If an OperationRequiredRole is removed from a component (e.g. moved to another component) and no other Pcm model elements are mapped to parts of the constructor, a empty constructor remains. We expect Pcm2Java reactions to remove constructors that contain no statements.

#243 adds a unit test which shows that behaviour (OperationRequiredRoleMappingTransformationTest.testChangeOperationRequiredRole). Currently the empty constructor is asserted by the unit test

@JanWittler JanWittler added Java Related to Java Applications or Java Domain PCM Related to PCM Applications or PCM Domain labels Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java Related to Java Applications or Java Domain PCM Related to PCM Applications or PCM Domain
Projects
None yet
Development

No branches or pull requests

2 participants