diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-12-16 11:41:39 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-12-16 11:42:29 +0100 |
commit | 4bba0c42a269fefe019cd9a9c54f595ff2956d61 (patch) | |
tree | f0046a525cac54d5e4ee6fa9f739f7cbb95f8d16 /sonar-batch/src/test/resources | |
parent | e184f159ade71372942f2840b62f6b71eeefb4c5 (diff) | |
download | sonarqube-4bba0c42a269fefe019cd9a9c54f595ff2956d61.tar.gz sonarqube-4bba0c42a269fefe019cd9a9c54f595ff2956d61.zip |
Add unit test for Java CPD Engine
Diffstat (limited to 'sonar-batch/src/test/resources')
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/cpd/ManyStatements.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cpd/ManyStatements.java b/sonar-batch/src/test/resources/org/sonar/batch/cpd/ManyStatements.java new file mode 100644 index 00000000000..ed2297068e4 --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cpd/ManyStatements.java @@ -0,0 +1,11 @@ +package org.foo; + +public class ManyStatements { + + void foo() { + int A1 = 0; int B = 0; int C = 0; int D = 0; int E = 0; int F = 0; int G = 0; int H = 0; int I = 0; int J = 0; int K = 0; + int A2 = 0; int B = 0; int C = 0; int D = 0; int E = 0; int F = 0; int G = 0; int H = 0; int I = 0; int J = 0; int K = 0; + int A1 = 0; int B = 0; int C = 0; int D = 0; int E = 0; int F = 0; int G = 0; int H = 0; int I = 0; int J = 0; int K = 0; + } + +}
\ No newline at end of file |