aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/test/java/org/sonar/api/config
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-10 07:15:03 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-01-10 07:15:08 +0100
commit2faaf7e16a03e69c4ff5f9c53805a387211a0872 (patch)
treefed31d45904142eff2e4b501883f08d5f07f0ce8 /sonar-plugin-api/src/test/java/org/sonar/api/config
parent3167bed5685e9f4b87e3482cdde2ac95897c8cfd (diff)
downloadsonarqube-2faaf7e16a03e69c4ff5f9c53805a387211a0872.tar.gz
sonarqube-2faaf7e16a03e69c4ff5f9c53805a387211a0872.zip
Replace fest-assert by assertJ
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/CategoryTest.java2
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java2
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/LicenseTest.java2
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionTest.java4
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionsTest.java2
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/config/SettingsTest.java12
6 files changed, 12 insertions, 12 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/CategoryTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/CategoryTest.java
index c6d9f3a733b..3a9fc4d29a2 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/CategoryTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/CategoryTest.java
@@ -21,7 +21,7 @@ package org.sonar.api.config;
import org.junit.Test;
-import static org.fest.assertions.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
public class CategoryTest {
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
index bab21fc7c5f..46ff99670cb 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/EmailSettingsTest.java
@@ -25,7 +25,7 @@ import org.sonar.api.CoreProperties;
import org.sonar.api.config.EmailSettings;
import org.sonar.api.config.Settings;
-import static org.fest.assertions.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
public class EmailSettingsTest {
EmailSettings emailSettings;
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/LicenseTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/LicenseTest.java
index d6b7d83d77b..305132e5251 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/LicenseTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/LicenseTest.java
@@ -23,7 +23,7 @@ import org.apache.commons.codec.binary.Base64;
import org.junit.Test;
import org.sonar.api.utils.DateUtils;
-import static org.fest.assertions.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
public class LicenseTest {
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 1451dcffbbe..52ed7d9f2d9 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
@@ -27,8 +27,8 @@ import org.sonar.api.PropertyType;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.utils.AnnotationUtils;
-import static org.fest.assertions.Assertions.assertThat;
-import static org.fest.assertions.Fail.fail;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.Assert.fail;
public class PropertyDefinitionTest {
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionsTest.java
index 127e7ea2796..a5001781f22 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionsTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/PropertyDefinitionsTest.java
@@ -27,7 +27,7 @@ import org.sonar.api.resources.Qualifiers;
import java.util.Arrays;
import java.util.List;
-import static org.fest.assertions.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
public class PropertyDefinitionsTest {
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/config/SettingsTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/config/SettingsTest.java
index 0b86d29e14c..48140ec82c9 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/config/SettingsTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/config/SettingsTest.java
@@ -20,7 +20,7 @@
package org.sonar.api.config;
import com.google.common.collect.ImmutableMap;
-import org.fest.assertions.Delta;
+import org.assertj.core.data.Offset;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -32,7 +32,7 @@ import org.sonar.api.utils.DateUtils;
import java.util.Date;
-import static org.fest.assertions.Assertions.assertThat;
+import static org.assertj.core.api.Assertions.assertThat;
public class SettingsTest {
@@ -161,8 +161,8 @@ public class SettingsTest {
Settings settings = new Settings();
settings.setProperty("from_double", 3.14159);
settings.setProperty("from_string", "3.14159");
- assertThat(settings.getDouble("from_double")).isEqualTo(3.14159, Delta.delta(0.00001));
- assertThat(settings.getDouble("from_string")).isEqualTo(3.14159, Delta.delta(0.00001));
+ assertThat(settings.getDouble("from_double")).isEqualTo(3.14159, Offset.offset(0.00001));
+ assertThat(settings.getDouble("from_string")).isEqualTo(3.14159, Offset.offset(0.00001));
assertThat(settings.getDouble("unknown")).isNull();
}
@@ -171,8 +171,8 @@ public class SettingsTest {
Settings settings = new Settings();
settings.setProperty("from_float", 3.14159f);
settings.setProperty("from_string", "3.14159");
- assertThat(settings.getDouble("from_float")).isEqualTo(3.14159f, Delta.delta(0.00001));
- assertThat(settings.getDouble("from_string")).isEqualTo(3.14159f, Delta.delta(0.00001));
+ assertThat(settings.getDouble("from_float")).isEqualTo(3.14159f, Offset.offset(0.00001));
+ assertThat(settings.getDouble("from_string")).isEqualTo(3.14159f, Offset.offset(0.00001));
assertThat(settings.getDouble("unknown")).isNull();
}