Search in sources :

Example 1 with P2RepositoryProject

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);
}
Also used : P2RepositoryProject(org.eclipse.xtext.xtext.wizard.P2RepositoryProject) UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) Test(org.junit.Test)

Example 2 with P2RepositoryProject

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());
}
Also used : P2RepositoryProject(org.eclipse.xtext.xtext.wizard.P2RepositoryProject) SdkFeatureProject(org.eclipse.xtext.xtext.wizard.SdkFeatureProject) Test(org.junit.Test)

Example 3 with P2RepositoryProject

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"));
}
Also used : P2RepositoryProject(org.eclipse.xtext.xtext.wizard.P2RepositoryProject) UiProjectDescriptor(org.eclipse.xtext.xtext.wizard.UiProjectDescriptor) Test(org.junit.Test)

Aggregations

P2RepositoryProject (org.eclipse.xtext.xtext.wizard.P2RepositoryProject)3 Test (org.junit.Test)3 UiProjectDescriptor (org.eclipse.xtext.xtext.wizard.UiProjectDescriptor)2 SdkFeatureProject (org.eclipse.xtext.xtext.wizard.SdkFeatureProject)1