Skip to content

Commit

Permalink
TYCHO-326 Run SWTBot tests
Browse files Browse the repository at this point in the history
Better parameter names
  • Loading branch information
ifedorenko committed Dec 18, 2009
1 parent 0e05735 commit 0ef9bd2
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,20 @@ public class TestMojo extends AbstractMojo {

/**
* Eclipse application to be run. If not specified, default application
* org.eclipse.ui.ide.workbench will be used.
* org.eclipse.ui.ide.workbench will be used. Application runnable
* will be invoked from test harness, not directly from Eclipse.
*
* @parameter
*/
private String testApplication;
private String application;

/**
* Eclipse product to be run. Despite the name, regular -product parameter
* will be used to start Eclipse.
* Eclipse product to be run, i.e. -product parameter
* passed to test Eclipse runtime.
*
* @parameter
*/
private String testProduct;
private String product;

private BundleResolutionState bundleResolutionState;

Expand Down Expand Up @@ -477,14 +478,14 @@ private boolean runTest(TestEclipseRuntime testRuntime, String testBundle, Strin
"-application", getTestApplication(testRuntime),
"-testproperties", surefireProperties.getAbsolutePath(),
});
if (testApplication != null) {
if (application != null) {
cli.addArguments(new String[] {
"-testApplication", testApplication,
"-testApplication", application,
});
}
if (testProduct != null) {
if (product != null) {
cli.addArguments(new String[] {
"-product", testProduct,
"-product", product,
});
}
if (useUIHarness && !useUIThread) {
Expand Down

0 comments on commit 0ef9bd2

Please sign in to comment.