wording: nested classes (IDEA-195597)

convert tests
This commit is contained in:
Anna.Kozlova
2018-07-16 17:26:32 +02:00
parent 8ee66e432e
commit 37ad75f543
10 changed files with 44 additions and 49 deletions
@@ -286,21 +286,21 @@ character.comparison.display.name=Character comparison
character.comparison.problem.descriptor=Character comparison <code>#ref</code> in an internationalized context #loc
package.visible.field.display.name=Package-visible field
package.visible.field.problem.descriptor=Package-visible field <code>#ref</code> #loc
package.visible.inner.class.display.name=Package-visible inner class
package.visible.inner.class.problem.descriptor=Package-visible inner class <code>#ref</code> #loc
package.visible.inner.class.display.name=Package-visible nested class
package.visible.inner.class.problem.descriptor=Package-visible nested class <code>#ref</code> #loc
package.visible.inner.class.ignore.enum.option=Ignore package-visible inner enums
package.visible.inner.class.ignore.interface.option=Ignore package-visible inner interfaces
protected.field.display.name=Protected field
protected.field.problem.descriptor=Protected field <code>#ref</code> #loc
protected.inner.class.display.name=Protected inner class
protected.inner.class.problem.descriptor=Protected inner class <code>#ref</code> #loc
protected.inner.class.display.name=Protected nested class
protected.inner.class.problem.descriptor=Protected nested class <code>#ref</code> #loc
protected.inner.class.ignore.enum.option=Ignore 'protected' inner enums
protected.inner.class.ignore.interface.option=Ignore 'protected' inner interfaces
public.field.display.name='public' field
public.field.problem.descriptor='public' field <code>#ref</code> #loc
public.field.ignore.enum.type.fields.option=Ignore 'public final' fields of an enum type
public.inner.class.display.name='public' inner class
public.inner.class.problem.descriptor='public' inner class <code>#ref</code> #loc
public.inner.class.display.name='public' nested class
public.inner.class.problem.descriptor='public' nested class <code>#ref</code> #loc
public.inner.class.ignore.enum.option=Ignore 'public' inner enums
public.inner.class.ignore.interface.option=Ignore 'public' inner interfaces
return.date.calendar.field.quickfix=Replace with ''{0}.clone()''
@@ -2,7 +2,7 @@ package com.siyeh.igtest.encapsulation.package_visible_inner_class;
public class PackageVisibleInnerClassInspection<T>
{
class Barangus
class <warning descr="Package-visible nested class 'Barangus'">Barangus</warning>
{
public Barangus(int val)
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>PackageVisibleInnerClassInspection.java</file>
<line>5</line>
<problem_class>Package-visible inner class</problem_class>
<description>Package-visible inner class &lt;code&gt;Barangus&lt;/code&gt; #loc</description>
</problem>
</problems>
@@ -2,7 +2,7 @@ package com.siyeh.igtest.encapsulation.protected_inner_class;
public class ProtectedInnerClass
{
protected class Barangus
protected class <warning descr="Protected nested class 'Barangus'">Barangus</warning>
{
public Barangus(int val)
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>ProtectedInnerClass.java</file>
<line>5</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Protected inner class</problem_class>
<description>Protected inner class &lt;code&gt;Barangus&lt;/code&gt; #loc</description>
</problem>
</problems>
@@ -2,7 +2,7 @@ package com.siyeh.igtest.encapsulation.public_inner_class;
public class PublicInnerClass
{
public class Barangus
public class <warning descr="'public' nested class 'Barangus'">Barangus</warning>
{
public Barangus(int val)
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>PublicInnerClass.java</file>
<line>5</line>
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">'public' inner class</problem_class>
<description>'public' inner class &lt;code&gt;Barangus&lt;/code&gt; #loc</description>
</problem>
</problems>
@@ -1,13 +1,20 @@
package com.siyeh.ig.encapsulation;
import com.siyeh.ig.IGInspectionTestCase;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
import org.jetbrains.annotations.Nullable;
public class PackageVisibleInnerClassInspectionTest extends IGInspectionTestCase {
public void test() {
public class PackageVisibleInnerClassInspectionTest extends LightInspectionTestCase {
@Nullable
@Override
protected InspectionProfileEntry getInspection() {
final PackageVisibleInnerClassInspection tool = new PackageVisibleInnerClassInspection();
tool.ignoreEnums = true;
tool.ignoreInterfaces = true;
doTest("com/siyeh/igtest/encapsulation/package_visible_inner_class", tool);
return tool;
}
public void testPackageVisibleInnerClassInspection() {
doTest();
}
}
@@ -1,13 +1,21 @@
package com.siyeh.ig.encapsulation;
import com.siyeh.ig.IGInspectionTestCase;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
import org.jetbrains.annotations.Nullable;
public class ProtectedInnerClassInspectionTest extends IGInspectionTestCase {
public class ProtectedInnerClassInspectionTest extends LightInspectionTestCase {
public void test() {
@Nullable
@Override
protected InspectionProfileEntry getInspection() {
final ProtectedInnerClassInspection tool = new ProtectedInnerClassInspection();
tool.ignoreEnums = true;
tool.ignoreInterfaces = true;
doTest("com/siyeh/igtest/encapsulation/protected_inner_class", tool);
return tool;
}
public void testProtectedInnerClass() {
doTest();
}
}
@@ -1,13 +1,20 @@
package com.siyeh.ig.encapsulation;
import com.siyeh.ig.IGInspectionTestCase;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.siyeh.ig.LightInspectionTestCase;
import org.jetbrains.annotations.Nullable;
public class PublicInnerClassInspectionTest extends IGInspectionTestCase {
public class PublicInnerClassInspectionTest extends LightInspectionTestCase {
public void testPublicInnerClass() {
doTest();
}
public void test() {
@Nullable
@Override
protected InspectionProfileEntry getInspection() {
final PublicInnerClassInspection tool = new PublicInnerClassInspection();
tool.ignoreEnums = true;
tool.ignoreInterfaces = true;
doTest("com/siyeh/igtest/encapsulation/public_inner_class", tool);
return tool;
}
}