Unit Testing [message #326472] |
Thu, 20 March 2008 13:17 |
Eclipse User |
|
|
|
Originally posted by: alexjaquet.gmail.com
Hi,
I'm currently writting test unit and I need to pass an IFile to a
method, how can I retrieve that IFile
Thanks
Alexandre
|
|
|
Re: Unit Testing [message #326475 is a reply to message #326472] |
Thu, 20 March 2008 13:40 |
Eclipse User |
|
|
|
Originally posted by: alexjaquet.gmail.com
I cannot do the following code
public void testSaveImages() throws Exception {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
final IProject project = workspace.getRoot().getProject("test");
IFile file = project.getFile("module/condition.module");
IPath path = new Path("/");
int imageFormat = SWT.IMAGE_GIF;
SaveConditionUtils.createImages(file, path, imageFormat);
}
because the file as to be saved outside the workspace ...
Any idea welcome
|
|
|
|
Powered by
FUDForum. Page generated in 0.03817 seconds