Skip to main content



      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 06:03 Go to next message
Eclipse UserFriend
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 06:18 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 23:25:05 EDT 2025

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

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

Back to the top