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

Bug 360116

Summary: [Model Explorer] Papyrus ModelExplorer should be covered with JUnit Test
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Vincent Lorenzo CLA 2011-10-06 11:45:00 EDT
I noticed that we often get regressions concerning the actions in the ModelExplorer. So we need JUnit tests to avoid this kind of problems.
In a first time, I think that the most critical actions are Delete and Rename.
The JUnit should tests : 
	- the enabled/disabled of the handler for the actions
	- when it is possible, we should execute the handler to verify that the action is correctly executed
	- when it is possible, we should test undo and redo too
Comment 1 Vincent Lorenzo CLA 2011-10-06 11:48:38 EDT
In R5743 (branch) a first commit for the plugin oep.modelexplorer.test
The JUnit tests succeeded on branch (not yet tested on trunk).
Currently, the Rename and the Delete actions are tested. For the moment, we test the handler activation, but not the execution of the command (excepted for Delete UML Element).
Comment 2 Vincent Lorenzo CLA 2011-10-12 09:01:33 EDT
In R5795 : new project : oep.papyrus.test.common which will provide common methods for JUnit tests
Comment 3 Remi Schnekenburger CLA 2012-05-23 06:33:49 EDT
Duplicate of the bug 379150.

*** This bug has been marked as a duplicate of bug 379150 ***