use of org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method allJavaProjects.
public List<? extends ProjectDescriptor> allJavaProjects() {
RuntimeProjectDescriptor _runtimeProject = this.config.getRuntimeProject();
TestProjectDescriptor _testProject = this.config.getRuntimeProject().getTestProject();
UiProjectDescriptor _uiProject = this.config.getUiProject();
TestProjectDescriptor _testProject_1 = this.config.getUiProject().getTestProject();
IdeProjectDescriptor _ideProject = this.config.getIdeProject();
IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
WebProjectDescriptor _webProject = this.config.getWebProject();
return Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(_runtimeProject, _testProject, _uiProject, _testProject_1, _ideProject, _intellijProject, _webProject));
}
use of org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method projectsCanBeBuiltAgainstXtextReleases.
@Test
public void projectsCanBeBuiltAgainstXtextReleases() {
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");
this.config.setXtextVersion(_xtextVersion);
final String snapshotsRepo = "repositories/snapshots";
Assert.assertFalse(this.config.getParentProject().pom().getContent().contains(snapshotsRepo));
Assert.assertFalse(this.config.getParentProject().buildGradle().getContent().contains(snapshotsRepo));
final String xtextIntellijRelease = "xtext/idea/${xtextVersion}";
Assert.assertTrue(this.config.getIntellijProject().buildGradle().getContent().contains(xtextIntellijRelease));
final String releaseUpdateSite = "xtext/updates/releases/2.9.0";
Assert.assertTrue(this.config.getTargetPlatformProject().target().toString().contains(releaseUpdateSite));
}
use of org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method intellijNeedsAGradleBuild.
@Test
public void intellijNeedsAGradleBuild() {
IntellijProjectDescriptor _intellijProject = this.config.getIntellijProject();
_intellijProject.setEnabled(true);
Assert.assertTrue(this.config.needsGradleBuild());
}
use of org.eclipse.xtext.xtext.wizard.IntellijProjectDescriptor 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