Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » JUnit Test on JET Transform
JUnit Test on JET Transform [message #613978] Fri, 11 January 2008 00:18
Roshan S. is currently offline Roshan S.Friend
Messages: 125
Registered: July 2009
Senior Member
Hi,

I want to run a JUnit test on a JET2 template by running the transform,
but whenever I try to run the transform inside of my test i.e.

-JET2Platform.runTransformOnObject(...)
-Compare results with expected output
-assertTrue

The problem is that the transformation is not being run. I tried to run
it within a Job, but I still had no luck. Any ideas would be greatly
appreciated:

Job job = new Job("SD .NET Generation") {
protected IStatus run(final IProgressMonitor monitor) {
Map variablesMap = initializeInputs();
JET2Platform.runTransformOnObject("project.transform", null,
variablesMap, monitor);

return Status.OK_STATUS;
}
};
Previous Topic:EStore getContainer
Next Topic:[Search] OCLExpressionWidget needs addModifyListener method?
Goto Forum:
  


Current Time: Sun Sep 20 04:21:24 GMT 2020

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

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

Back to the top