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; }
public JFrame open(DualPaneUIVersion1 ui) { return createTestFrame(ui.getMainComponent(), ui.getOutputPanel()); }