Search in sources :

Example 11 with UiProjectDescriptor

use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.

the class WizardConfigurationTest method eclipseUiCanBeBuiltWithPDE.

@Test
public void eclipseUiCanBeBuiltWithPDE() {
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    Assert.assertFalse(this.config.needsGradleBuild());
    Assert.assertFalse(this.config.needsMavenBuild());
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) Test(org.junit.Test)

Example 12 with UiProjectDescriptor

use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.

the class WizardConfigurationTest method runtimeTestsDontNeedTychoUiHarness.

@Test
public void runtimeTestsDontNeedTychoUiHarness() {
    this.config.setPreferredBuildSystem(BuildSystem.MAVEN);
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    final String pom = this.config.getRuntimeProject().getTestProject().pom().getContent();
    Assert.assertFalse(pom.contains("useUIHarness"));
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) Test(org.junit.Test)

Example 13 with UiProjectDescriptor

use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.

the class WizardConfigurationTest method aTychoBuildIncludesATargetPlatform.

@Test
public void aTychoBuildIncludesATargetPlatform() {
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    this.config.setPreferredBuildSystem(BuildSystem.MAVEN);
    Assert.assertTrue(this.config.getTargetPlatformProject().isEnabled());
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) Test(org.junit.Test)

Example 14 with UiProjectDescriptor

use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.

the class WizardConfigurationTest method p2AndSdkProjectsAreBuiltWithTychoWhenMavenBuiltIsEnabled.

@Test
public void p2AndSdkProjectsAreBuiltWithTychoWhenMavenBuiltIsEnabled() {
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    P2RepositoryProject _p2Project = this.config.getP2Project();
    _p2Project.setEnabled(true);
    this.config.setPreferredBuildSystem(BuildSystem.MAVEN);
    Assert.assertTrue(this.config.needsTychoBuild());
    Assert.assertTrue(this.config.getSdkProject().pom().getContent().contains("eclipse-feature"));
    Assert.assertTrue(this.config.getP2Project().pom().getContent().contains("eclipse-repository"));
    Assert.assertTrue(this.config.getParentProject().pom().getContent().contains("tycho"));
}
Also used : P2RepositoryProject(org.eclipse.xtext.xtext.wizard.P2RepositoryProject) UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) Test(org.junit.Test)

Example 15 with UiProjectDescriptor

use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.

the class WizardConfigurationTest method projectsCanBeBuiltAgainstXtextNightlies.

@Test
public void projectsCanBeBuiltAgainstXtextNightlies() {
    this.config.setPreferredBuildSystem(BuildSystem.GRADLE);
    UiProjectDescriptor _uiProject = this.config.getUiProject();
    _uiProject.setEnabled(true);
    IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
    _intellijProject.setEnabled(true);
    XtextVersion _xtextVersion = new XtextVersion("2.9.0-SNAPSHOT");
    this.config.setXtextVersion(_xtextVersion);
    final String snapshotsRepo = "repositories/snapshots";
    Assert.assertTrue(this.config.getParentProject().pom().getContent().contains(snapshotsRepo));
    Assert.assertTrue(this.config.getParentProject().buildGradle().getContent().contains(snapshotsRepo));
    final String xtextIntellijSnapshots = "/xtext-intellij/lastSuccessfulBuild/";
    Assert.assertTrue(this.config.getIntellijProject().buildGradle().getContent().contains(xtextIntellijSnapshots));
    final String nightlyUpdateSite = "xtext/updates/nightly";
    Assert.assertTrue(this.config.getTargetPlatformProject().target().toString().contains(nightlyUpdateSite));
}
Also used : UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) IntellijProjectDescriptor(org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor) XtextVersion(org.eclipse.xtext.util.XtextVersion) Test(org.junit.Test)

Aggregations

UiProjectDescriptor (org.eclipse.xtext.xtext.wizard.UiProjectDescriptor)15 Test (org.junit.Test)13 IntellijProjectDescriptor (org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor)5 TestProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestProjectDescriptor)5 IdeProjectDescriptor (org.eclipse.xtext.xtext.wizard.IdeProjectDescriptor)4 ProjectDescriptor (org.eclipse.xtext.xtext.wizard.ProjectDescriptor)4 TestedProjectDescriptor (org.eclipse.xtext.xtext.wizard.TestedProjectDescriptor)4 WebProjectDescriptor (org.eclipse.xtext.xtext.wizard.WebProjectDescriptor)4 RuntimeProjectDescriptor (org.eclipse.xtext.xtext.wizard.RuntimeProjectDescriptor)3 XtextVersion (org.eclipse.xtext.util.XtextVersion)2 P2RepositoryProject (org.eclipse.xtext.xtext.wizard.P2RepositoryProject)2 PomFile (org.eclipse.xtext.xtext.wizard.PomFile)2 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)1 RuntimeTestProjectDescriptor (org.eclipse.xtext.xtext.wizard.RuntimeTestProjectDescriptor)1