Exemplo n.º 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;
  }
Exemplo n.º 2
0
 protected ArtifactBuilder artifactBuilder() {
   InProcessGradleExecuter gradleExecuter = new InProcessGradleExecuter();
   gradleExecuter.withUserHomeDir(distribution.getUserHomeDir());
   return new GradleBackedArtifactBuilder(gradleExecuter, getTestDir().file("artifacts"));
 }
Exemplo n.º 3
0
 public TestFile getTestDir() {
   return distribution.getTestDir();
 }