Unit Testing [message #326472] |
Thu, 20 March 2008 13:17 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.04465 seconds