Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1.     public void testRecentlyOpenedDataFiles() throws URISyntaxException {
  2.         final Window window = getMainWindow();
  3.         final String RESOURCE_PATH = "com/bodymedia/irs2/ui/";
  4.         ClassLoader classLoader = getClass().getClassLoader();
  5.         File directory = new File(classLoader.getResource(RESOURCE_PATH).toURI());
  6.  
  7.         openSWDFile(window, FIREFLY_FILE);
  8.         openSWDFile(window, MINIFLY_FILE);
  9.  
  10.         MenuItem item = window.getMenuBar().getMenu(ResourceManager.getString(Resource.MENU_MRU_FILES));
  11.         item.click();
  12.         assertTrue(item.contentEquals(directory.getAbsolutePath()+File.separator+FIREFLY_FILE, directory.getAbsolutePath()+File.separator+MINIFLY_FILE));
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement