aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2012-01-18 23:19:49 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2012-01-18 23:20:07 +0100
commit0ad4d058d96529007f8c994a71e5f2365346f8b2 (patch)
tree1ae44d1043e7fe2ad9309e38446b62eb2e9e80a5 /sonar-plugin-api
parent39632c09ae9eeabac95a568e553f727c2a319841 (diff)
downloadsonarqube-0ad4d058d96529007f8c994a71e5f2365346f8b2.tar.gz
sonarqube-0ad4d058d96529007f8c994a71e5f2365346f8b2.zip
Fix compatibility of FieldUtilsTest with Jacoco
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtilsTest.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtilsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtilsTest.java
index 18f2b36e6d1..4694c498e8c 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtilsTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/FieldUtilsTest.java
@@ -43,13 +43,11 @@ public class FieldUtilsTest {
assertThat(fields, hasItem(new FieldMatcher("protectedStaticField")));
assertThat(fields, hasItem(new FieldMatcher("packageStaticField")));
assertThat(fields, hasItem(new FieldMatcher("privateStaticField")));
- assertThat(fields.size(), is(8));
}
@Test
public void shouldGetFieldsOfClassHierarchy() {
List<Field> fields = FieldUtils.getFields(Child.class, true);
-
assertThat(fields, hasItem(new FieldMatcher("publicField")));
assertThat(fields, hasItem(new FieldMatcher("protectedField")));
assertThat(fields, hasItem(new FieldMatcher("packageField")));
@@ -58,10 +56,7 @@ public class FieldUtilsTest {
assertThat(fields, hasItem(new FieldMatcher("protectedStaticField")));
assertThat(fields, hasItem(new FieldMatcher("packageStaticField")));
assertThat(fields, hasItem(new FieldMatcher("privateStaticField")));
-
assertThat(fields, hasItem(new FieldMatcher("childPrivateField")));
-
- assertThat(fields.size(), is(8 + 1));
}
@Test
@@ -70,7 +65,6 @@ public class FieldUtilsTest {
assertThat(fields, hasItem(new FieldMatcher("publicField")));
assertThat(fields, hasItem(new FieldMatcher("publicStaticField")));
- assertThat(fields.size(), is(2));
}
@Test
@@ -78,7 +72,6 @@ public class FieldUtilsTest {
List<Field> fields = FieldUtils.getFields(InterfaceWithFields.class, true);
assertThat(fields, hasItem(new FieldMatcher("INTERFACE_FIELD")));
- assertThat(fields.size(), is(1));
}
@Test
@@ -86,7 +79,6 @@ public class FieldUtilsTest {
List<Field> fields = FieldUtils.getFields(InterfaceImplementation.class, true);
assertThat(fields, hasItem(new FieldMatcher("INTERFACE_FIELD")));
- assertThat(fields.size(), is(1));
}
static interface InterfaceWithFields {