Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] @BeforeWorkbench method?

Hello,

I have an SWTBot test that needs to create a pristine workspace before
any tests are run. It currently does so in the test class'
@BeforeClass method, but that causes problems because the workspace
has already been loaded by the time the method executes. Is there a
way to execute code prior to starting the workbench? Something like a
@BeforeWorkbench method? Alternately, does anyone have suggestions on
how to (re)create a clean workspace for each test run?

Thanks,

Brett


Back to the top