// 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.
package org.jetbrains.idea.devkit.kotlin.inspections;

import com.intellij.testFramework.TestDataPath;
import kotlin.KotlinVersion;
import org.jetbrains.idea.devkit.inspections.ComponentNotRegisteredInspectionTestBase;
import org.jetbrains.idea.devkit.kotlin.DevkitKtTestsUtil;
import org.junit.Assume;

@TestDataPath("$CONTENT_ROOT/testData/inspections/componentNotRegistered")
public class KtComponentNotRegisteredInspectionTest extends ComponentNotRegisteredInspectionTestBase {
  @Override
  protected void setUp() throws Exception {
    super.setUp();
    Assume.assumeTrue(KotlinVersion.CURRENT.isAtLeast(1, 2, 50));
  }

  @Override
  protected String getSourceFileExtension() {
    return "kt";
  }

  @Override
  protected String getBasePath() {
    return DevkitKtTestsUtil.TESTDATA_PATH + "inspections/componentNotRegistered";
  }
}

@@ -17,10 +17,10 @@
 0-20
-18
+20
  Jet
@@ -241,37 +241,8 @@
 th;%0A
-import kotlin.KotlinVersion;%0A
 impo
@@ -386,33 +386,8 @@
 til;
-%0Aimport org.junit.Assume;
 %0A%0A@T
@@ -459,16 +459,16 @@
 tered%22)%0A
+
 public c
@@ -565,153 +565,8 @@
 se %7B
-%0A  @Override%0A  protected void setUp() throws Exception %7B%0A    super.setUp();%0A    Assume.assumeTrue(KotlinVersion.CURRENT.isAtLeast(1, 2, 50));%0A  %7D
 %0A%0A  

remove Kotlin plugin version check