use of org.eclipse.xtext.xtext.wizard.P2RepositoryProject in project xtext-core by eclipse.
the class WizardConfigurationTest method p2ProjectsEnablesSourceGenerationWithTychoWhenMavenBuiltIsEnabled.
@Test
public void p2ProjectsEnablesSourceGenerationWithTychoWhenMavenBuiltIsEnabled() {
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());
String _content = this.config.getParentProject().pom().getContent();
final Procedure1<String> _function = (String it) -> {
Assert.assertTrue(it.contains("tycho-source-plugin"));
Assert.assertTrue(it.contains("tycho-source-feature-plugin"));
};
ObjectExtensions.<String>operator_doubleArrow(_content, _function);
}
use of org.eclipse.xtext.xtext.wizard.P2RepositoryProject in project xtext-core by eclipse.
the class WizardConfigurationTest method p2ProjectEnablesSdkProject.
@Test
public void p2ProjectEnablesSdkProject() {
P2RepositoryProject _p2Project = this.config.getP2Project();
_p2Project.setEnabled(true);
SdkFeatureProject _sdkProject = this.config.getSdkProject();
_sdkProject.setEnabled(false);
Assert.assertTrue(this.config.getSdkProject().isEnabled());
}
use of org.eclipse.xtext.xtext.wizard.P2RepositoryProject 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"));
}
Aggregations