make IG test light

This commit is contained in:
Bas Leijdekkers
2017-03-17 17:25:22 +01:00
parent 115820857e
commit 54f5a31627
3 changed files with 30 additions and 15 deletions
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>package.html</file>
<line>1</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">'package.html' may be converted to 'package-info.java'</problem_class>
<description>&lt;code&gt;package.html&lt;/code&gt; may be converted to &lt;code&gt;package-info.java&lt;/code&gt;</description>
</problem>
</problems>
@@ -1,3 +1,3 @@
<html>
<warning descr="'package.html' may be converted to 'package-info.java'"><html>
this is a test file
</html>
</html></warning>
@@ -1,10 +1,34 @@
/*
* Copyright 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.siyeh.ig.javadoc;
import com.siyeh.ig.IGInspectionTestCase;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
import org.jetbrains.annotations.Nullable;
public class PackageDotHtmlMayBePackageInfoInspectionTest extends IGInspectionTestCase {
public class PackageDotHtmlMayBePackageInfoInspectionTest extends LightInspectionTestCase {
public void test() throws Exception {
doTest("com/siyeh/igtest/javadoc/package_dot_html_may_be_package_info", new PackageDotHtmlMayBePackageInfoInspection());
public void testSimple() throws Exception {
myFixture.configureByFile("package.html");
myFixture.testHighlighting(true, false, false);
}
@Nullable
@Override
protected InspectionProfileEntry getInspection() {
return new PackageDotHtmlMayBePackageInfoInspection();
}
}