Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365520 - [tests] Standalone UML JUnit tests fail for MDT/UML2 UML 2.4.1 URIs
Summary: [tests] Standalone UML JUnit tests fail for MDT/UML2 UML 2.4.1 URIs
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2.0   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: M4   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard: Release Currency, Legacy
Keywords:
Depends on: 365487
Blocks:
  Show dependency tree
 
Reported: 2011-12-04 08:32 EST by Ed Willink CLA
Modified: 2013-05-20 11:36 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.