I have a test like this
public class TesteSairApp extends GermantechTest {
@Test
public void testApp() throws Exception {
SWTBotMenu file = bot.menu("Arquivo");
bot.sleep(1000);
SWTBotMenu clickSair = file.menu("Sair");
bot.sleep(1000);
SWTBotMenu menuClicado = clickSair.click();
System.out.println(menuClicado);
bot.sleep(1000);
pass();
}
which just quit the app.
After the app quit, I got this exception:
java.lang.NoClassDefFoundError: org/hamcrest/Matchers
at org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot.editors(SWTWorkbenchBot.java:222)
at ...
If I remove the bot.resetWorkbench();
from @After
in GermantehcTest
, the test passes...
What is wrong here?