use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method eclipsePluginsAreBuiltWithTychoWhenMavenBuiltIsEnabled.
@Test
public void eclipsePluginsAreBuiltWithTychoWhenMavenBuiltIsEnabled() {
UiProjectDescriptor _uiProject = this.config.getUiProject();
_uiProject.setEnabled(true);
IdeProjectDescriptor _ideProject = this.config.getIdeProject();
_ideProject.setEnabled(true);
this.config.setPreferredBuildSystem(BuildSystem.MAVEN);
Assert.assertTrue(this.config.needsTychoBuild());
RuntimeProjectDescriptor _runtimeProject = this.config.getRuntimeProject();
IdeProjectDescriptor _ideProject_1 = this.config.getIdeProject();
UiProjectDescriptor _uiProject_1 = this.config.getUiProject();
final Consumer<ProjectDescriptor> _function = (ProjectDescriptor it) -> {
Assert.assertTrue(it.pom().getContent().contains("eclipse-plugin"));
};
Collections.<ProjectDescriptor>unmodifiableList(CollectionLiterals.<ProjectDescriptor>newArrayList(_runtimeProject, _ideProject_1, _uiProject_1)).forEach(_function);
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 uiTestsNeedTychoUiHarness.
@Test
public void uiTestsNeedTychoUiHarness() {
this.config.setPreferredBuildSystem(BuildSystem.MAVEN);
UiProjectDescriptor _uiProject = this.config.getUiProject();
_uiProject.setEnabled(true);
final String pom = this.config.getUiProject().getTestProject().pom().getContent();
Assert.assertTrue(pom.contains("useUIHarness"));
}
use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor in project xtext-core by eclipse.
the class WizardConfigurationTest method eclipseUiIsBuiltWithTychoWhenNotUsingPDE.
@Test
public void eclipseUiIsBuiltWithTychoWhenNotUsingPDE() {
UiProjectDescriptor _uiProject = this.config.getUiProject();
_uiProject.setEnabled(true);
this.config.setPreferredBuildSystem(BuildSystem.GRADLE);
Assert.assertTrue(this.config.needsTychoBuild());
}
use of org.eclipse.xtext.xtext.wizard.UiProjectDescriptor 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.UiProjectDescriptor 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));
}
Aggregations