mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
484043: wizard configuration tests
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=484043 Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
This commit is contained in:
parent
a4a5907adb
commit
dfe3f34fa5
1 changed files with 37 additions and 1 deletions
|
@ -57,19 +57,50 @@ class WizardConfigurationTest {
|
|||
]
|
||||
assertTrue(config.parentProject.pom.content.contains("tycho"))
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
def void p2AndSdkProjectsAreBuiltWithTychoWhenMavenBuiltIsEnabled() {
|
||||
config.uiProject.enabled = true
|
||||
config.p2Project.enabled = true
|
||||
config.preferredBuildSystem = BuildSystem.MAVEN
|
||||
assertTrue(config.needsTychoBuild)
|
||||
assertTrue(config.sdkProject.pom.content.contains("eclipse-feature"))
|
||||
assertTrue(config.p2Project.pom.content.contains("eclipse-repository"))
|
||||
assertTrue(config.parentProject.pom.content.contains("tycho"))
|
||||
}
|
||||
|
||||
@Test
|
||||
def void p2ProjectsEnablesSourceGenerationWithTychoWhenMavenBuiltIsEnabled() {
|
||||
config.uiProject.enabled = true
|
||||
config.p2Project.enabled = true
|
||||
config.preferredBuildSystem = BuildSystem.MAVEN
|
||||
assertTrue(config.needsTychoBuild)
|
||||
config.parentProject.pom.content => [
|
||||
assertTrue(contains("tycho-source-plugin"))
|
||||
assertTrue(contains("tycho-source-feature-plugin"))
|
||||
]
|
||||
}
|
||||
|
||||
@Test
|
||||
def void aTychoBuildIncludesATargetPlatform() {
|
||||
config.uiProject.enabled = true
|
||||
config.preferredBuildSystem = BuildSystem.MAVEN
|
||||
assertTrue(config.targetPlatformProject.enabled)
|
||||
}
|
||||
|
||||
@Test
|
||||
def void testProjectIsPluginProjectWhenRuntimeProjectIsPluginProject() {
|
||||
config.runtimeProject.testProject.enabled = true
|
||||
assertTrue(config.runtimeProject.testProject.isEclipsePluginProject)
|
||||
}
|
||||
|
||||
@Test
|
||||
def void p2ProjectEnablesSdkProject() {
|
||||
config.p2Project.enabled = true
|
||||
config.sdkProject.enabled = false
|
||||
assertTrue(config.sdkProject.enabled)
|
||||
}
|
||||
|
||||
@Test
|
||||
def void eclipseUiCanBeBuiltWithPDE() {
|
||||
config.uiProject.enabled = true
|
||||
|
@ -160,6 +191,11 @@ class WizardConfigurationTest {
|
|||
assertTrue(files.exists[relativePath == "build.properties"])
|
||||
]
|
||||
}
|
||||
|
||||
@Test
|
||||
def void featureProjectsHaveEclipseBuildProperties() {
|
||||
assertTrue(config.sdkProject.files.exists[relativePath == "build.properties"])
|
||||
}
|
||||
|
||||
@Test
|
||||
def void projectsCanBeBuiltAgainstXtextNightlies() {
|
||||
|
|
Loading…
Reference in a new issue