JUnit Test on JET Transform [message #613978] |
Fri, 11 January 2008 00:18 |
Roshan S. 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;
}
};
|
|
|
Powered by
FUDForum. Page generated in 0.04337 seconds