Author: vpakan(a)redhat.com
Date: 2010-03-23 11:31:17 -0400 (Tue, 23 Mar 2010)
New Revision: 20984
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java
Log:
Use getPathToResources() when locating resources.
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java 2010-03-23
15:28:45 UTC (rev 20983)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java 2010-03-23
15:31:17 UTC (rev 20984)
@@ -50,11 +50,7 @@
/*
* Load stored tags
*/
- Bundle bundle = Platform.getBundle("org.jboss.tools.vpe.ui.bot.test");
//$NON-NLS-1$
- URL url = bundle.getEntry("/resources"); //$NON-NLS-1$
- url = FileLocator.resolve(url);
- IPath path = new Path(url.getPath());
- File file = path.append(STORED_TAGS_PATH).toFile();
+ File file = new File (getPathToResources(STORED_TAGS_PATH));
assertTrue("File '" + file.getAbsolutePath() +"' does not
exist.", file.exists()); //$NON-NLS-1$ //$NON-NLS-2$
bot.text().setText(file.getAbsolutePath());
/*
Show replies by date