highlight usages tests -> community

This commit is contained in:
peter
2012-11-05 18:43:59 +01:00
parent abd90c58d1
commit 4d84e2e1f9
9 changed files with 212 additions and 0 deletions
@@ -0,0 +1,7 @@
class Usage extends<caret> Base{
void foo() {
}
}
class Base {
void foo(){}
}
@@ -0,0 +1,7 @@
class Usage <caret>implements Base{
void foo() {
}
}
interface Base {
void foo();
}
@@ -0,0 +1,11 @@
class Usage <caret>implements Base, Other{
public void foo() {
}
public void other() {}
}
interface Base {
void foo();
}
interface Other {
void other();
}
@@ -0,0 +1,7 @@
class Usage <caret>extends Base{
void foo3() {
}
}
class Base {
void foo() {}
}
@@ -0,0 +1,5 @@
class Calculator {
public void printError(String detail, int line, String file) <caret>throws Exception {
throw new Exception();
}
}
@@ -0,0 +1,5 @@
class Calculator {
public void printError(Object detail, int line, String file) <caret>throws Exception {
throw (Exception)detail;
}
}
@@ -0,0 +1,5 @@
class Calculator {
public void printError(Exception detail, int line, String file) <caret>throws Exception {
throw detail;
}
}
@@ -0,0 +1,6 @@
class Usage {
void foo() {
foo();
<caret>foo();
}
}