public void testOk_storage() {
openRabbitPreferences();
String storagePath = System.getProperty("user.home") + File.separator
+ System.nanoTime() + "";
SWTBotText text = bot.textWithLabel("Location:");
text.setText(storagePath);
bot.button("OK").click();
try {
// A message box may be popped up asking to move the old files.
bot.button("No").click();
} catch (WidgetNotFoundException e) {}
assertEquals(storagePath, XmlPlugin.getDefault().getStoragePathRoot()
.toOSString());
openRabbitPreferences();
storagePath = System.getProperty("user.home") + File.separator
+ System.nanoTime() + "";
text = bot.textWithLabel("Location:");
text.setText(storagePath);
bot.button("OK").click();
try {
// A message box may be popped up asking to move the old files.
bot.button("No").click();
} catch (WidgetNotFoundException e) {}