StandardWidgetToolkitProvider extends Provider { static void relayProperties(final List<String> command) { if (isLinux(OS_NAME)) { relayNetworkProperties(command); } relayProperty(command, "org.eclipse.swt.browser.XULRunnerPath"); relayProperty(command, "org.eclipse.swt.browser.MOZ_PROFILE_PATH"); } protected  StandardWidgetToolkitProvider(); static String getDefaultSwtJarPath(); @Override List<String> checkRequirements(); @Override void augmentProcessParameters(final List<String> command, final List<String> classPath); static final String SWT_RUNTIME_JAR_OVERRIDE; }
@Test public void relaySwtBrowserSettings() { System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "/a/b/c"); System.setProperty("org.eclipse.swt.browser.MOZ_PROFILE_PATH", "/d/e/f"); final List<String> command = new ArrayList<String>(); StandardWidgetToolkitProvider.relayProperties(command); assertEquals(2, command.size()); assertTrue(hasExpectedOption("-Dorg.eclipse.swt.browser.XULRunnerPath=/a/b/c", command)); assertTrue(hasExpectedOption("-Dorg.eclipse.swt.browser.MOZ_PROFILE_PATH=/d/e/f", command)); }