Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Running a QVT transformation headless or from JUnit(Running a QVT transformation headless or from JUnit)
Running a QVT transformation headless or from JUnit [message #1783993] Wed, 21 March 2018 10:03 Go to next message
Bruce Trask is currently offline Bruce TraskFriend
Messages: 58
Registered: July 2009
Member
Hello,

Is there an example or doc for invoking a QVT transformation programmatically versus from a launch configuration? E.g from a JUnit test case?

Regards,
Bruce
Re: Running a QVT transformation headless or from JUnit [message #1783995 is a reply to message #1783993] Wed, 21 March 2018 10:18 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6040
Registered: July 2009
Senior Member
Hi

The Eclipse QVTo project JUnit tests provide many examples, but they're hard to follow since they have smart configuration files to allow the same test code to support hundreds of tests.

(Eclipse QVTo provides Ant facilities but I really wouldn't recommend using Ant when MWE2 is so much better.)

GIT\org.eclipse.ocl\examples\org.eclipse.ocl.examples.build\src\org\eclipse\ocl\examples\build\utilities\QVToTransformationExecutor.java

is a Java bean that enables a QVTo transformation to be used within an MWE2 script. It is used by the auto-generation of the OCL Pivot.ecore and Java classes from UML.xmi + OCL.uml + MDTOCL.uml.

Regards

Ed Willink
Previous Topic:QVTO - Calling a mapping versus clone
Next Topic:How to import a library
Goto Forum:
  


Current Time: Sun Sep 23 00:14:04 GMT 2018

Powered by FUDForum. Page generated in 0.01547 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top