Esempio n. 1
0
  public SinglePaneUIVersion1 createSinglePaneUI() {
    TestSingleDualPaneUIInteractionVersion1 testSingleDualPaneUIInteractionVersion1 =
        new TestSingleDualPaneUIInteractionVersion1(
            new TestAlternateUIInteractionVersion1(), new TestSettingsNodeVersion1());
    SinglePaneUIVersion1 singlePane;
    try {
      singlePane =
          UIFactory.createSinglePaneUI(
              getClass().getClassLoader(),
              dist.getGradleHomeDir(),
              testSingleDualPaneUIInteractionVersion1,
              false);
    } catch (Exception e) {
      throw UncheckedException.throwAsUncheckedException(e);
    }

    // make sure we got something
    Assert.assertNotNull(singlePane);

    singlePane.setCurrentDirectory(dist.getTestDir());
    singlePane.addCommandLineArgumentAlteringListener(
        new ExtraTestCommandLineOptionsListener(dist.getUserHomeDir()));

    return singlePane;
  }
Esempio n. 2
0
 public JFrame open(SinglePaneUIVersion1 ui) {
   return createTestFrame(ui.getComponent(), null);
 }