Skip to main content
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2023-02-23Bug 581585 - [Core] Test failure in model creation wizardPauline DEVILLE1-0/+1
We removed the lazy loading because the test bundle was not loading and we cannot load the IModelSetService OSGI service. Change-Id: I38db78d4dad701bc7d137fbc1e28311ddf88fc37 Signed-off-by: Pauline DEVILLE <>
2023-01-25Bug 562217 - Papyrus shall expose an API for the Model Set inptessier2-4/+6
papyrus.infra.core Bug 562218 - Papyrus core should be the alone plugin be able to create Service Registry Change-Id: I578105f549a7eedb31fde4297a2b5023f061e544 Signed-off-by: ptessier <> Signed-off-by: Vincent Lorenzo <> Signed-off-by: Pauline DEVILLE <>
2022-12-19Bug 581229 - [Dependencies] We should remove the dependencies on old Orbit ↵Ibtihel Khemir4-399/+2
version - remove the dependencies - delete the class Java8DeltaXMLVisitor which was unused - delete the class SafeDeltaXmlVisitor which was unused Change-Id: I0a76fd27d0541c7f57d8231b73b3dd98bb300ad0 Signed-off-by: Ibtihel Khemir <>
2022-11-14Bug 580313 - [Releng] Update bundles testsPauline DEVILLE1-6/+13
Change-Id: I4086762e4405666471ebee49bd7c8596aecf0465 Signed-off-by: Pauline DEVILLE <>
2022-11-10Bug 581024 - Change dependency to version 5.0.1Pauline DEVILLE1-0/+7
Change-Id: I6b0ecb8ac78479e9978d53e6fe5d4e03d59fd82b Signed-off-by: Pauline DEVILLE <>
2022-11-04Bug 580313 - [Releng] Update targetplatform for the 2022-12 M2Quentin Le Menez1-1/+1
Change-Id: I7aba0ff013a35b8cb44138890b4bfed38a340462 Signed-off-by: Quentin Le Menez <>
2022-10-05Bug 580313 - [Releng] Update targetplatform for the 2022-12 release trainQuentin Le Menez8-190/+200
- modified some code in order to reflect API changes in PlatformUI - modified platforms to keep needed dependencies to departed from later on Change-Id: I97d765485ad7c2a2bd2e9a3a4657b8661e9740c2 Signed-off-by: Quentin Le Menez <>
2022-08-02Bug 580192: [Papyrus][Test] Bug and open API in PapyrusEditorFixtureVincent Lorenzo3-5/+10
Change-Id: I8d95cef5fb969e04bbf1b1c83c2eac66c82fe6e1 Signed-off-by: Vincent Lorenzo <>
2022-03-01Bug 577854 - The execution of 5 papyrus test are not deterministptessier8-0/+19
add @Test Change-Id: I2774f50c0ff1e3d450fcefdaad22ca752c24f0d5 Signed-off-by: ptessier <>
2022-02-02Bug 577567 - [Releng] Update for 2022-03 M2 + fix bundle testsPauline DEVILLE6-495/+4
Change-Id: I38ed3eb5faf13542e80d47e1d99df13844338492 Signed-off-by: Pauline DEVILLE <>
2022-01-11[Releng] Relax junit version due to incompatibilites with jupiterQuentin Le Menez6-9/+9
Change-Id: Ic86b098263e4272517eaca953fee8a5e4d133839 Signed-off-by: Quentin Le Menez <>
2022-01-06Bug 577854 - The execution of 5 papyrus test are not deterministptessier8-37/+38
Change-Id: I90a6051e02b3e5538b6e7d92d0a9cf216e148f52 Signed-off-by: ptessier <>
2021-11-03Bug 575255: [Toolsmiths] Remove genextension EPackage from the gmf.codegen ↵Vincent Lorenzo3-52/+19
metamodel + remove migration tool Change-Id: I8440d4981ab460f9703edf636fbfdd39a7e8f705 Signed-off-by: Vincent Lorenzo <>
2021-10-28Bug 563212 - [Diagram] Containment link cannot be deleted (semanticPauline DEVILLE6-22/+50
delete) Change-Id: I882428defece0f05398d50ae1fe019df94fb8507 Signed-off-by: Pauline DEVILLE <>
2021-10-25Bug 573986: [Toolsmiths] Properties view editor validation & incrementalChristian W. Damus95-92/+6339
updates Common fixes - fix encoding and decoding of related object URIs in the problem markers - handle stereotypes in nested packages (not profiles) - fix NPE in architecture builder - prompt to save editor before running quick fix if it's dirty - save editor after running quick fix - save and clean up resources loaded by the quick fix that the editor doesn't need to know about - delete cross-references within the scope of context models when deleting a data-context element, to account for supertype references, both in the editor and the quick fix Properties validation builder - add new validation builder plug-in for Properties models - check plugin.xml extensions for context and environment models - check existence of referenced Java classes and implied bundle dependencies - handle 'ppe' URI scheme in ModelDependenciesChecker via new generic service - ensure that HREFs to environment models that do not use XMI IDs are not broken by automatic assignment of IDs on resource load - ensure that XMI IDs are generated in context resources - add annotations to the generated Properties Context model to trace to the original source model (UML Profile or Ecore model) - add annotations to data context roots to record which layout generator was used to generate sections (used for quick fixes) - hide annotations from the editor by default because they need not (and probably should not) be edited by the user - infer traceability to source models from known constraints and internal relationships in the context model - add derived reference to views that use a section, supported by generated CacheAdapter implementation - add model validation rules for missing and obsolete data context elements and properties in the context model - add custom validation rules for EMFInstanceOf, UMLInstanceOf, and HasStereotype constraints, that their referenced classes can be resolved - validate that data-context properties, elements, and packages match their corresponding source model elements by name - quick fixes to rename data-context properties, elements, and packages to match their source model elements - includes 'touching' affected XWT resources to ensure that their qualified name references are updated - add check for missing data-context package for nested package/profile - check for entire source package/profile moved Add marker resolutions for - simple property-type inconsistency problems - delete obsolete data-context properties - add missing data-context properties - add missing data-context properties with property editors in sections - delete obsolete data-context elements - add missing data-context elements - add missing data-context elements with generated views - quick fixes to generate data-context package with or without views - add quick fix to find new package/profile location and update all source link URIs - add a quick fix for unresolved class problems in constraints - get appropriately qualified "expected name" of the class referenced by a constraint for population of marker data for the quick fix - generate a fix for each valid name that the constraint can reference Change-Id: Iebd062470d7539d15321cffa80556fc1d22023f2 Signed-off-by: Christian W. Damus <>
2021-10-20Bug 576595: [ModelExplorer] Fix the action "Open In New Table"Vincent Lorenzo14-14/+14
Change-Id: Ie57c5502716a9e11c35d410eeb82c7970bc0a119 Signed-off-by: Vincent Lorenzo <>
2021-10-20Bug 574511: [Diagram] Update plugins version/ Check API break after diagram ↵Vincent Lorenzo33-73/+51
regeneration - update version for gmf-tooling - update version for uml diagram common - update version for sequence diagram - update version for activity diagram - update version for diagram component - update required manifest.MF and pom.xml files - remove old api filters files Change-Id: I8a53fbcc92146bcb05bf04205c485a0ff2b7945e Signed-off-by: Vincent Lorenzo <>
2021-10-19Bug 575254: [Toolsmiths] Remove the plugin org.eclipse.papyrus.gmfgenextensionVincent Lorenzo2-45/+0
Signed-off-by: Vincent Lorenzo <> Change-Id: I560e7206ce15f5af7bee91eb30453d13fe71ad81
2021-10-19Bug 569174: [Toolsmiths] Papyrus integration of GMF Tooling - Fix Junit TestsVincent Lorenzo1-22/+48
L1.2 clean up - FIX Junit tests org.eclipse.papyrus.infra.gmfdiag.canonical.tests.EditingInClassDiagramRegressionTest.createDependencyInClass (execute/undo/redo) Signed-off-by: Vincent Lorenzo <> Signed-off-by: Etienne Allogo <> Change-Id: I50e5fb46c7f7dc286d977b60d5b1ea578d306000
2021-10-19Bug 569174: [Toolsmiths] Papyrus integration of GMF Tooling - merge xtend ↵Etienne Allogo1-1/+0
template L1.4. Merge papyrus templates (org.eclipse.papyrus.def/xtend) into org.eclipse.papyrus.codegen/xtend Signed-off-by: Etienne Allogo <> Change-Id: Ic159b50b6866a704c0c5928ded7d429347760e37
2021-10-19Bug 569174: [Toolsmiths] Papyrus integration of GMF ToolingEtienne Allogo3-22/+25
- 1.3 Merge gmfgenextension] pre merge step - move gmfgenextension to gmfgen.ecore 1 - Move generated model files from org.eclipse.papyrus.papyrusgmfgenextension to org.eclipse.papyrus.gmf.codegen.genextension 2 - Mode ecore definition papyrusgmfgenextension.ecore to gmfgen.ecore as a sub package of gmfgen (genextension) 3 - Generate model( and edit-or) into org.eclipse.papyrus.gmf.codegen.gmfgen and org.eclipse.papyrus.gmf.codegen.genextension 4 - Fix non java files (gmfgen + plugin.xml etc) 5 - Keep popup actions in org.eclipse.papyrus.papyrusgmfgenextension for now Signed-off-by: Etienne Allogo <> Change-Id: I3f670ce66aa6b498bd3696f7721ad248dacd6243
2021-09-02Bug 573410: [Toolsmiths] Plug-in builder reports spurious problems in ↵Christian W. Damus33-0/+2119
Expansion Models - update the validation to use the ClasspathHelper to support classes in the JDT workspace classpath - add JUnit test coverage Change-Id: Ie6337c57b4a574f7bc47fe07c1d3f8de88deccd4 Signed-off-by: Christian W. Damus <>
2021-09-02Bug 569105: [Toolsmiths] The "Remove Reexport" quickfix may create invalid ↵Christian W. Damus2-51/+58
Manifest directives - do not add a null value for a header attribute/directive that was not present Change-Id: I36872c7803730655e48a62c4dc72c5383aa2b7c5 Signed-off-by: Christian W. Damus <>
2021-08-30Bug 574690: [Toolsmiths - Quickfixes] Add folder to should ↵Christian W. Damus2-0/+118
ignore nested folders - update the quick fix to add the topmost folder to the build, not the immediate container of the file Change-Id: Ie9a4813945066ae0666cdd77053393b1be2aff6e Signed-off-by: Christian W. Damus <>
2021-08-30Bug 573888: the papyrus builder raises an error on the profile referenced in ↵Christian W. Damus3-0/+116
the AF - ensure that package/profile registrations on the EMF and UML2 extension points that use platform:/plugin URIs are resolved into the workspace where applicable Change-Id: I859ff15a80cfc5cc4fab9168657f7ad9503ad792 Signed-off-by: Christian W. Damus <>
2021-08-30Bug 573042: Spurious indexingChristian W. Damus1-0/+38
- do not index derived resources in the workspace Change-Id: Iefde5547bf8722d73d0f3707ec1d07fcccd7ab88 Signed-off-by: Christian W. Damus <>
2021-08-25Bug 573886: An incorrectly completed NS URI can make the AF wobblyChristian W. Damus6-4/+243
- add a custom Profile validation rule checking for relative URIs Change-Id: I629400f6001ab860544b7d80b940810345ab682b Signed-off-by: Christian W. Damus <>
2021-08-25Bug 573245: [Toolsmiths] Remove plug-in validation context menu actionsChristian W. Damus2-45/+18
- remove the plug-in extensions for the menu actions and supporting bits such as expression property testers - remove internal APIs used by the menu actions - deprecate public APIs that were only used by the menu actions, reimplemented by delegation to project build - adjust JUnit test cases to account for these changes - update the documentation guide for the plug-in validation to remove references to the menu actions Change-Id: I9426d011c4b0140d776a6b7dd2761e6a01b5e8de Signed-off-by: Christian W. Damus <>
2021-08-25Bug 573788: [Toolsmiths] Generic representation clean-up adviceChristian W. Damus17-13/+560
- create a generic representation (view) deletion advice that works with any user-defined representation kind - add a context menu action to the Architecture Model that adds this advice to an architecture context - add a custom toolsmiths validation warning for architecture contexts that do not reference, inherit, or get by extension this new advice, unless the context is an extension of other contexts - add a bit of documentation about quick fix APIs Change-Id: I58ce20d7d9654d5c5204a7a01c505d143a0328af Signed-off-by: Christian W. Damus <>
2021-08-09Bug 575205: [Core, model indexer] Race condition workspace model indexerChristian W. Damus3-174/+282
- do not use JobManager::join to wait for idle state of indexing - aggregate after-index computations onto a single job to avoid flooding the JobManager with tiny JobBasedFutures - add new listener mechanism in IndexManager to improve testability of synchronization scenarios involving the JobWrangler job - ensure isolation of WorkspaceModelIndex tests for consistent execution Change-Id: Icb915bebb8a90e46e29aafe3b788c18ade42033d Signed-off-by: Christian W. Damus <>
2021-07-13Bug 572633: [Toolsmiths] New Child Menus: plug-in builderChristian W. Damus47-8/+2011
- create a New Child Menu validation bundle with the plug-in checker implementation - implement role validation based on a workspace-wide Element Types Configurations index on a refactoring of the Architecture Domain model index - integrate the New Child Menu plug-in checkers into the Papyrus Project Builder - support plug-in relative paths for icons in creation menu models in addition to absolute URIs - avoid unintended automatic builds during plug-in builder tests - add documentation of the new child plug-in validation Change-Id: Iadbbd7515a092290d5b66d17ff22676d330f61c3 Signed-off-by: Christian W. Damus <>
2021-07-13Bug 573656: [Welcome Page] Concurrent Modification issue on Welcome page ↵Christian W. Damus9-48/+233
while generating Element Types for a profile Privileged runnables cannot be run asynchronously, otherwise there is every possibility that the transaction that owns them will no longer be active when the runnable runs. So, instead, create a new read-only transaction in the asynchronous runnable to process the notifications and update the observable property on the UI thread. Change-Id: I35ce6845415d8a90108bca5a1877c7c0b11b747a Signed-off-by: Christian W. Damus <>
2021-07-13Bug 572676: [Toolsmiths] Profiles without a URI are not properly handled by ↵Christian W. Damus9-3/+431
the Validators/Quickfixes - update static profile utility to account for profiles having no URI for which the EMF Model Importer would generate a namespace URI - use the utility in Element Types Configurations validation builder - add JUnit test coverage for UML Profile validation builder - so that there will be no test failures, incorporate a fix for extant UML Profile project builder test failure from another Gerrit patch Change-Id: Id4195d706f0eb1c6df9a8ac2d8f999f70d337247 Signed-off-by: Christian W. Damus <>
2021-07-13Bug 573408: [Toolsmiths] GenericEMFModelBuilder tries to validate CSS filesChristian W. Damus1-0/+3
- skip CSS files in the generic EMF model validation - ensure that resources loaded for validation are unloaded - only try to parse XMLResources for XML namespaces - don't read and parse entire model file to get XML namespaces - attempt to fix intermittent failure of an Architecture Builder test Change-Id: Ib8db7339ad6b2a43a2b5a38a5b612b4c548eec1a Signed-off-by: Christian W. Damus <>
2021-06-01Bug 573885: ElementTypes are badly generatedChristian W. Damus16-2/+707
- account for indirectly applied profiles on nested packages in the stereotype application matcher/advice implementation Change-Id: I19acbbb9fd2596926a1a4952da2770f77e273309 Signed-off-by: Christian W. Damus <>
2021-05-04Bug 570486: [Architecture] Architecture model shall clearly define merge and ↵Christian W. Damus6-42/+204
inherit concepts - warn on implicit merges Change-Id: Id9a4a1821dd985812892113a801173fba5b8fb9d Signed-off-by: Christian W. Damus <>
2021-04-30Bug 572677: [Toolsmiths] Duplicate extensions for "Missing ↵Christian W. Damus12-63/+394
oepu.extensionpoints.UMLProfile" quickfix - in the case of generating a new element, only add it to the plug-in model after configuring it - fix up some method signatures for methods that access markers to let them throw CoreException - add JUnit test coverage for affected quick fixes - while we're at it, add all of the validation builder tests to the Toolsmiths test suite - and fix the UML Profile validation build test failures - fix case mismatch in file name in ModelDependenciesCheckerTest Change-Id: Ifcf9bf83cbc282cf7898df6c819ade02c36c0c6e Signed-off-by: Christian W. Damus <>
2021-04-30Bug 572712: [NewChild] Creation menu edit providers do not support child ↵Christian W. Damus3-14/+155
creation extenders - add an indirection filter to enable sharing filters amongst constraint rules in Element Creation Menu models, Modeling Assistant models, and other dependent models - also with the option to own the filter to access child creation extenders - incorporate operator into label of compound filters for clarity - regenerate dependent models' EMF.Edit plug-ins, cleaning out creation icons where possible Change-Id: I0846b7e47180e381f0774e1858e6b51c53b74d3d Signed-off-by: Christian W. Damus <>
2021-04-30Bug 570486: [Architecture] Architecture model shall clearly define merge and ↵Christian W. Damus42-84/+2474
inherit concepts - implement new architecture domain merger with support for legacy algorithm - update ArchitectureDomainManager and ArchitectureDomainMerger to be safe in concurrent access from the ArchitectureIndex - adapt look-up of creation and conversion command classes to trace the class name to the source architecture model for the most appropriate bundle context - update Architecture View to use the public merged model API - adapt old merge tests to use new API - add more test coverage of legacy merge - test coverage of legacy merge mixed with explicit extensions - test coverage for mixing context inheritance with context extension - improve test coverage of the Merged Architecture façade API - update documentation to describe new inheritance and extension concepts, and the merge algorithm - add tracing options for analysis of run-time problems in architecture merge Change-Id: I939d252e7ccdcc55ec81e54ba2b9677616d2d488 Signed-off-by: Christian W. Damus <>
2021-04-28Bug 571125: [Toolsmith] Improve icon validation for toolsmith validationChristian W. Damus1-5/+10
- unify validation of icons referenced by model elements - covers opaque resources of all kinds, not just icons: e.g., creation/conversion command classes in Architecture models - covers resources referenced from model files and from plugin.xml - add calculation of required bundle dependencies from command-class features that are constrained to implement some interface, the bundle providing that interface type being a required dependency. This helps to diagnose problems in resolving commands when the JDT classpath of the architecture bundle does not include the required interface Change-Id: I70db66a448d13cd989da3aeb51b54d2995d273b6 Signed-off-by: Christian W. Damus <>
2021-04-28Bug 573197: [Toolsmiths] Exception in ValidateElementTypesPluginTesterChristian W. Damus3-3/+94
- do not attempt to access closed projects - use a resource visitor instead of recursion Change-Id: I370c0a033fb960d78f25e3a3974ae459108beb32 Signed-off-by: Christian W. Damus <>
2021-04-27Bug 571629: [Properties] Undo fails and other problems with applied stereotypesChristian W. Damus4-50/+240
- use edit service to get apply/unapply stereotype commands - compose commands for multiple selection removal and dialog scenario - implement a stereotype application reordering command with correct undo/redo - correct support for reordering of multiple selection - dynamic enablement of buttons - account for unspecified ordering of multiple selections in a tree - apply and unapply profiles also needs to go through the edit helpers Change-Id: I42d35823b8743ffeec4114051adcff4883eb324a Signed-off-by: Christian W. Damus <>
2021-04-27Bug 571561: [Element Types] Simple rule configuration refactoringsChristian W. Damus7-48/+488
- add refactoring actions for rule-based element type rules - account for non-containment of NotRuleConfiguration::composedRule (bug 571560) Change-Id: Ie32f0524429801ca0ccbc6b91863403161c74f7e Signed-off-by: Christian W. Damus <>
2021-04-26Bug 570486: [Architecture] Architecture model shall clearly define merge and ↵Christian W. Damus18-5/+1488
inherit concepts Updates to the Architecture Description model. Changes: - make ArchitectureContext::creationCommandClass optional ([0..1] multiplicity) as it is now not required by a context that extends another context Additions in class ArchitectureContext: - reference extendedContexts: ArchitectureContext [*] — the contexts to which this context contributes elements such as viewpoints - reference generalContext: ArchitectureContext [0..1] — a context that this context specializes to define a new instantiable context based on it - attribute /extension: Boolean — whether the context is an extension of one or more other contexts. An extension context cannot be instantiated in it own right and does not appear in the New Model Wizard and other UIs that present architecture contexts - operation isConsistentWith(context: ArchitectureContext): Boolean — query whether this context is consistent with another one with respect to extension or generalization. For now the only condition is that they are of the same class (an ArchitectureFramework is not consistent with an ArchitectureDescriptionLanguage and vice versa) - operation allGeneralContexts(): ArchitectureContext [*] — computes the chain of all contexts that this context inherits - operation allExtendedContexts(): ArchitectureContext [*] — computes the closure of all extended contexts. If context C extends context B and B extends context A, then by transitivity C extends context A also. But note that extension of contexts is not inherited: a context C with a general context B that extends context A does not, itself, extend A. But if C does also references A as an extended context, then that makes B's extension of A moot when C is also present in the architecture registry (the merge algorithm will need to account for this) Constraints in class ArchitectureContext: - generalizationCycle — an ArchitectureContext must not specialize itself, either directly or indirectly - extensionCycle — an ArchitectureContext must not extend itself, either directly or indirectly - generalNotExtended — none of the extended contexts of an ArchitectureContext may extend any of its general contexts as this would effectively result in it extending itself. Note that I see no reason why a context that is a specialization of another context may not also be an extension of yet other contexts, so long as this constraint is satisfied - creationCommandClassRequired — an ArchitectureContext that is not an extension must have a creationCommandClass (this replaces the previous multiplicity constraint that is now relaxed) - contextGeneralizationIsConsistent — an ArchitectureContext may only specialize a general context that is consistent with it (which for now is just that it is of the same class) - contextExtensionIsConsistent — an ArchitectureContext may only extend a context that is consistent with it (which for now is just that it is of the same class) Change-Id: I9ccf7210f4bf82d930226d1e1c20eec62e1da488 Signed-off-by: Christian W. Damus <>
2021-04-26Bug 570716: [Tests] Fix ReloadEditorTest failureChristian W. Damus4-122/+177
- annotate the test as failing. Cause for failures in CI build undetermined - clean up deprecation warnings as this file is now modified Change-Id: I02110ed6157d725c1f184e084a03d85a95e0ebc7 Signed-off-by: Christian W. Damus <>
2021-04-26Bug 572865: [Toolsmiths] Architecture Editor may break because of the new ↵Christian W. Damus10-3/+311
PlatformHelper - handle case of package registration without a genmodel which is common in compatibility scenarios mapping older NS URIs to the current version of a package - while we're at it, the URI mapping parsing needs the same bullet-proofing - add JUnit regression test coverage Change-Id: I881f214f04349dafa4243bbe2b3e0cd8fbbd729d Signed-off-by: Christian W. Damus <>
2021-04-15Bug 570716: [Tests] Sequence diagram validation test regressionChristian W. Damus3-55/+52
- another test failure cause by Eclipse OCL 6.14's thread-local management of environment factories. This time tests run fast enough that the OCL environment for an editor of a previous test isn't collected by the time the next test tries to set the environment, which results in OCL balking at multiple concurrent environments and OCL being unavailable to that test and all subsequent tests Change-Id: Ice4c85d0edcaa061a2cf462dea97901133a11f23 Signed-off-by: Christian W. Damus <>
2021-04-14Bug 570716: [Tests] Fix Modeling Assistant test failuresChristian W. Damus2-44/+45
Fix modeling assistant test failures in the nightly build. These did actually signal a bug affecting normal Papyrus editing functionality: drawing out a connection handle to create new elements did not suggest any connection types from the assistants model. Change-Id: Ifeba21644f67baf592e8ebbc702e330d35ced17c Signed-off-by: Christian W. Damus <>
2021-04-12Bug 570716 - [Tests] Fix some JUnits TestsVincent Lorenzo5-6/+16
Change-Id: I029eb04f9c7a47f5e7907ca69e58d36db5ae9fba Signed-off-by: Vincent Lorenzo <>
2021-04-12Bug 539694: The Architecture models raises bad errorsChristian W. Damus3-23/+76
- fix case of workspace-wide JDT search without context URI broken by earlier fix - ensure that JDT and Java projects are ready when running tests with Maven Change-Id: If65d2334ee653286d8ddbed01765093135893ba5 Signed-off-by: Christian W. Damus <>

Back to the top