Beispiel #1
0
  public DualPaneUIVersion1 createDualPaneUI() {
    TestSingleDualPaneUIInteractionVersion1 testSingleDualPaneUIInteractionVersion1 =
        new TestSingleDualPaneUIInteractionVersion1(
            new TestAlternateUIInteractionVersion1(), new TestSettingsNodeVersion1());
    DualPaneUIVersion1 dualPane;
    try {
      dualPane =
          UIFactory.createDualPaneUI(
              getClass().getClassLoader(),
              dist.getGradleHomeDir(),
              testSingleDualPaneUIInteractionVersion1,
              false);
    } catch (Exception e) {
      throw UncheckedException.throwAsUncheckedException(e);
    }

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

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

    return dualPane;
  }
Beispiel #2
0
 public JFrame open(DualPaneUIVersion1 ui) {
   return createTestFrame(ui.getMainComponent(), ui.getOutputPanel());
 }