aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-11-28 22:29:03 +0000
committerGodin <mandrikov@gmail.com>2010-11-28 22:29:03 +0000
commitf172395d65fbe713f9ee89250b936e349dd121d1 (patch)
tree62d4021a47a9de6ec158c9b6929629c3a1ddb1f1 /plugins/sonar-squid-java-plugin/test-resources
parent4b56cc8557a72da0aaf34ac9e40adb53854343c2 (diff)
downloadsonarqube-f172395d65fbe713f9ee89250b936e349dd121d1.tar.gz
sonarqube-f172395d65fbe713f9ee89250b936e349dd121d1.zip
SONAR-2015: Improve unit test
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java b/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java
index 4f075dfbf36..729a0a7fe89 100644
--- a/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java
+++ b/plugins/sonar-squid-java-plugin/test-resources/rules/UndocumentedApi.java
@@ -7,9 +7,22 @@ class UndocumentedApi {
public UndocumentedApi() { // no violation, because empty constructor
}
+ public UndocumentedApi(String key) { // violation
+ this.key = key;
+ }
+
public void run() { // violation
}
+ public interface InnerUndocumentedInterface { // violation
+ }
+
+ /**
+ * no violation, because documented
+ */
+ public void run2() {
+ }
+
public void setKey(String key) { // no violation, because setter
this.key = key;
}
@@ -22,4 +35,5 @@ class UndocumentedApi {
public String toString() { // no violation, because method with override annotation
return key;
}
+
}