mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Maven: test for experimental Java X language level importing support
This commit is contained in:
+20
@@ -692,6 +692,26 @@ public class StructureImportingTest extends MavenImportingTestCase {
|
||||
assertEquals(LanguageLevel.JDK_1_6, getLanguageLevelForModule());
|
||||
}
|
||||
|
||||
public void testLanguageLevelX() {
|
||||
importProject("<groupId>test</groupId>" +
|
||||
"<artifactId>project</artifactId>" +
|
||||
"<version>1</version>" +
|
||||
"<build>" +
|
||||
" <plugins>" +
|
||||
" <plugin>" +
|
||||
" <groupId>org.apache.maven.plugins</groupId>" +
|
||||
" <artifactId>maven-compiler-plugin</artifactId>" +
|
||||
" <configuration>" +
|
||||
" <source>99</source>" +
|
||||
" </configuration>" +
|
||||
" </plugin>" +
|
||||
" </plugins>" +
|
||||
"</build>");
|
||||
|
||||
assertModules("project");
|
||||
assertEquals(LanguageLevel.JDK_X, getLanguageLevelForModule());
|
||||
}
|
||||
|
||||
public void testLanguageLevelWhenCompilerPluginIsNotSpecified() {
|
||||
importProject("<groupId>test</groupId>" +
|
||||
"<artifactId>project</artifactId>" +
|
||||
|
||||
Reference in New Issue
Block a user