allow starting coverage tests on java 17

GitOrigin-RevId: 307072d8c13cd0d60cd4583cc0730fb094083749
This commit is contained in:
Anna Kozlova
2022-01-12 15:18:43 +00:00
committed by intellij-monorepo-bot
parent 4e5ee88446
commit 7cfbe0a000
@@ -1,4 +1,4 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.coverage;
import com.intellij.openapi.application.PluginPathManager;
@@ -9,6 +9,7 @@ import com.intellij.openapi.roots.ContentEntry;
import com.intellij.openapi.roots.ModuleRootModificationUtil;
import com.intellij.openapi.vfs.VfsUtilCore;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.pom.java.LanguageLevel;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiPackage;
@@ -33,6 +34,11 @@ public class CoverageAnnotatorIntegrationTest extends JavaModuleTestCase {
}
@Override
protected @NotNull LanguageLevel getProjectLanguageLevel() {
return LanguageLevel.JDK_11;
}
@Override
protected void setUp() throws Exception {
super.setUp();