aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-09-22 03:27:03 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-09-22 13:11:58 +0400
commitd599f9513e119de581b778d49f5e92c1e6b0008f (patch)
tree9ba7a1c1e9aadf7b0567c5d94c1e8e9f9fc04ac8 /plugins/sonar-squid-java-plugin/test-resources
parenta02d4600fe04f3a70e2d9cf0fa42b9b9ce5378f3 (diff)
downloadsonarqube-d599f9513e119de581b778d49f5e92c1e6b0008f.tar.gz
sonarqube-d599f9513e119de581b778d49f5e92c1e6b0008f.zip
SONAR-1836 Add tests against bugs in Checkstyle
Those tests will allow us to be notified during update of Checkstyle that bugs were fixed : * escaped unicode (exists in Checkstyle 5.1 - 5.4) * line comment at the end of file (exists in Checkstyle 5.2 - 5.4)
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java3
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java9
2 files changed, 12 insertions, 0 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java
new file mode 100644
index 00000000000..a9b876911a4
--- /dev/null
+++ b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java
@@ -0,0 +1,3 @@
+public class LineCommentAtTheEndOfFile
+{
+} // EOF on this line \ No newline at end of file
diff --git a/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java
new file mode 100644
index 00000000000..38ea3a84081
--- /dev/null
+++ b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java
@@ -0,0 +1,9 @@
+public class UnicodeEscape {
+
+ public void foo() {
+ char a = '\u005Cr';
+ char b = '\uuuu005Cr';
+ char c = '\u005c\u005c';
+ }
+
+}