Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 474486

Summary: [Core] CapsulePart should be protected by default
Product: [Modeling] Papyrus-rt Reporter: Remi Schnekenburger <rschnekenburger>
Component: coreAssignee: Project Inbox <papyrusrt-inbox>
Status: CLOSED FIXED QA Contact: Remi Schnekenburger <rschnekenburger>
Severity: normal    
Priority: P3 CC: papyrus-bugs, peter.cigehn
Version: 0.8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 472883    

Description Remi Schnekenburger CLA 2015-08-07 05:36:43 EDT
By default, a capsulePart should be created "protected". the CapsulePartEditHelperAdvice#getAfterconfigureCommand() should be updated, and some tests should be added for this creation.
Comment 1 Peter Cigehn CLA 2015-12-10 08:38:21 EST
Can this one be put into resolved/verified fixed? This seem to work already, i.e. when creating a capsule part, either from new child menu, by drag-and-drop, or from palette in capsule structure diagram, you get a capsule part with visibility protected.

Or is the unit tests missing before this can be put into resolved fixed?
Comment 2 Remi Schnekenburger CLA 2015-12-10 11:20:49 EST
Junit are in fact missing. 

org.eclipse.papyrusrt.umlrt.core.tests.creation.CreateElementTest.testCreateCapsulePartInCapsule() should be updated to use the test method with a validation rule checking this protected status
Comment 3 Remi Schnekenburger CLA 2015-12-10 11:37:58 EST
Missing tests fixed with commit 36932e4d7849a607228807230984adf9ed3d19c5

closing bug
Comment 4 Peter Cigehn CLA 2015-12-11 02:28:13 EST
You can put this one into verified fixed also. I don't have the access right to do so.
Comment 5 Peter Cigehn CLA 2017-02-01 04:58:07 EST
Closing as already verified fixed.