aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/config
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-10-05 10:58:44 +0200
committerDavid Gageot <david@gageot.net>2012-10-05 12:46:08 +0200
commit3b491638221796e517421d401d23b16e1589eabc (patch)
tree780309ee3863454d6d4777b83cd3673a5710bf63 /sonar-plugin-api/src/test/java/org/sonar/api/config
parent0e4035176cadd517927a03abc6f41c4bdd5e1105 (diff)
downloadsonarqube-3b491638221796e517421d401d23b16e1589eabc.tar.gz
sonarqube-3b491638221796e517421d401d23b16e1589eabc.zip
Fix violations
Diffstat (limited to 'sonar-plugin-api/src/test/java/org/sonar/api/config')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionTest.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionTest.java
index bc76fcd7507..a0b2295f98b 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionTest.java
@@ -94,17 +94,17 @@ public class PropertyDefinitionTest {
PropertyDefinition def = PropertyDefinition.create(prop);
assertThat(def.getFields()).hasSize(2);
- assertThat(def.getFields()[0].getKey()).isEqualTo("first");
- assertThat(def.getFields()[0].getName()).isEqualTo("First");
- assertThat(def.getFields()[0].getDescription()).isEqualTo("Description");
- assertThat(def.getFields()[0].getType()).isEqualTo(PropertyType.STRING);
- assertThat(def.getFields()[0].getOptions()).containsOnly("A", "B");
- assertThat(def.getFields()[0].getIndicativeSize()).isEqualTo(20);
- assertThat(def.getFields()[1].getKey()).isEqualTo("second");
- assertThat(def.getFields()[1].getName()).isEqualTo("Second");
- assertThat(def.getFields()[1].getType()).isEqualTo(PropertyType.INTEGER);
- assertThat(def.getFields()[1].getOptions()).isEmpty();
- assertThat(def.getFields()[1].getIndicativeSize()).isEqualTo(5);
+ assertThat(def.getFields().get(0).getKey()).isEqualTo("first");
+ assertThat(def.getFields().get(0).getName()).isEqualTo("First");
+ assertThat(def.getFields().get(0).getDescription()).isEqualTo("Description");
+ assertThat(def.getFields().get(0).getType()).isEqualTo(PropertyType.STRING);
+ assertThat(def.getFields().get(0).getOptions()).containsOnly("A", "B");
+ assertThat(def.getFields().get(0).getIndicativeSize()).isEqualTo(20);
+ assertThat(def.getFields().get(1).getKey()).isEqualTo("second");
+ assertThat(def.getFields().get(1).getName()).isEqualTo("Second");
+ assertThat(def.getFields().get(1).getType()).isEqualTo(PropertyType.INTEGER);
+ assertThat(def.getFields().get(1).getOptions()).isEmpty();
+ assertThat(def.getFields().get(1).getIndicativeSize()).isEqualTo(5);
}
@Properties(@Property(key = "hello", name = "Hello"))