Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void testRecentlyOpenedDataFiles() throws URISyntaxException {
- final Window window = getMainWindow();
- final String RESOURCE_PATH = "com/bodymedia/irs2/ui/";
- ClassLoader classLoader = getClass().getClassLoader();
- File directory = new File(classLoader.getResource(RESOURCE_PATH).toURI());
- openSWDFile(window, FIREFLY_FILE);
- openSWDFile(window, MINIFLY_FILE);
- MenuItem item = window.getMenuBar().getMenu(ResourceManager.getString(Resource.MENU_MRU_FILES));
- item.click();
- assertTrue(item.contentEquals(directory.getAbsolutePath()+File.separator+FIREFLY_FILE, directory.getAbsolutePath()+File.separator+MINIFLY_FILE));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement