advHighlighting -> light test case

This commit is contained in:
Anna.Kozlova
2019-01-02 16:35:41 +01:00
parent 7c76bbbbb7
commit 2e7f05efd0
57 changed files with 201 additions and 278 deletions
@@ -17,12 +17,6 @@ package pck;
import static pck.Assert.assertEquals;
class Assert {
static void assertEquals(Object o1, Object o2) {}
static void assertEquals(long l1, long l2) {}
}
class Test {
void test() {
assertEquals<error descr="Ambiguous method call: both 'Assert.assertEquals(Object, Object)' and 'Assert.assertEquals(long, long)' match">(100L, Long.valueOf(100L))</error>;
@@ -2,7 +2,7 @@ package p;
import p2.GenericClass;
public class Class1 extends GenericClass<Integer> {
class Class1 extends GenericClass<Integer> {
public void map(InnerClass context) {
Class2.test(context);
}
@@ -2,7 +2,7 @@ package p;
import p2.GenericClass;
public class Class1 extends GenericClass<Integer> {
class Class1 extends GenericClass<Integer> {
public void map(InnerClass context) {
Class2.test(context);
}
@@ -1,11 +0,0 @@
package pck;
public class A {
static void bar(Object a) {
System.out.println("A");
}
}
class B {
static void bar(Object a) {
System.out.println("B");
}
}
@@ -1,10 +0,0 @@
package p;
import p2.GenericClass.InnerClass;
public class Class2 {
public static boolean test(InnerClass context) {
return true;
}
}
@@ -1,6 +0,0 @@
package p2;
public class GenericClass<T> {
public class InnerClass {
}
}
@@ -1,10 +0,0 @@
package p;
import p2.GenericClass.*;
public class Class2 {
public static boolean test(InnerClass context) {
return true;
}
}
@@ -1,6 +0,0 @@
package p2;
public class GenericClass<T> {
public class InnerClass {
}
}
@@ -1,29 +0,0 @@
/*
* Copyright 2000-2011 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 x;
public class Base1 {
public static final int F = 1;
public static void m(int i) { }
public static class F { }
public static class D { }
public interface I1 {
int IF = 1;
}
public interface I2 {
float IF = 2.0f;
}
}
@@ -1,25 +0,0 @@
/*
* Copyright 2000-2011 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 x;
public class Base2 extends Base1 {
public static final float F = 2.0f;
public static void m(float f) { }
public static class F { }
public static class D { }
public interface II extends I1, I2 { }
public enum E { }
}
@@ -1,18 +0,0 @@
/*
* Copyright 2000-2011 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 x;
public class E { }
@@ -1,20 +0,0 @@
/*
* Copyright 2000-2011 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 P1;
public class C1 {
public static int Foo;
}
@@ -1,20 +0,0 @@
/*
* Copyright 2000-2011 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 P1;
public class C2 {
public static int Foo;
}