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());
}
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"));
}
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());
}
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"));
}
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));
}
Aggregations