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

Bug 365520

Summary: [tests] Standalone UML JUnit tests fail for MDT/UML2 UML 2.4.1 URIs
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 3.2.0   
Target Milestone: M4   
Hardware: PC   
OS: Windows Vista   
Whiteboard: Release Currency, Legacy
Bug Depends on: 365487    
Bug Blocks:    

Description Ed Willink CLA 2011-12-04 08:32:43 EST
The org.eclipse.ocl.uml.OCL.initialize functionality is inappropriate for the new UML 2.4.1 URIs. This gives almost 100% failures to run.
Comment 1 Ed Willink CLA 2011-12-04 08:38:26 EST
I thought this might be easy given that I'd already been tackling this for Pivot UML support. It doesn't seem to be; the existing half-baked initialization interacts badly with the fuller pivot init.

A single clean user-consumable standalone init is needed.

Hopefully MDT/UML2 will provide one which we can re-use and/or extend.

Until then, I'm not inclined to hack the current approach. Therefore all UML standalone JUnit tests are retracted from the build. The plugin JUnit tests still run so at least most functionality remains tested.

This has no immediate impact on users, expect any user who hoped that OCL.initialize would enable UML2 to be used will be disappointed. UML2 is to all intents and purposes unuseable in standalone at present.
Comment 2 Ed Willink CLA 2011-12-04 08:47:49 EST
(In reply to comment #1)
> Until then, I'm not inclined to hack the current approach. Therefore all UML
> standalone JUnit tests are retracted from the build. The plugin JUnit tests
> still run so at least most functionality remains tested.

But only interactively. Plugin tests still disabled by Bug 358801.
Comment 3 Ed Willink CLA 2011-12-11 23:04:18 EST
Fixed by an explicit TypesPackage.eINSTANCE before UMLPackage is initialised.

UML standalone test re-enabled.

Pushed to master.

Tests run again.
Comment 4 Ed Willink CLA 2013-05-20 11:36:34 EDT
CLOSED after a year in the RESOLVED state.