tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pottlin...@apache.org
Subject incubator-tamaya-sandbox git commit: TAMAYA-218: Add assertJ tests
Date Mon, 27 Nov 2017 21:53:19 GMT
Repository: incubator-tamaya-sandbox
Updated Branches:
  refs/heads/master 50e092585 -> 03997f7f3


TAMAYA-218: Add assertJ tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/commit/03997f7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/tree/03997f7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/diff/03997f7f

Branch: refs/heads/master
Commit: 03997f7f348732bb3b32d781a8f6bcd48eb8d959
Parents: 50e0925
Author: Phil Ottlinger <pottlinger@apache.org>
Authored: Mon Nov 27 22:53:13 2017 +0100
Committer: Phil Ottlinger <pottlinger@apache.org>
Committed: Mon Nov 27 22:53:13 2017 +0100

----------------------------------------------------------------------
 .../apache/tamaya/metamodel/ext/IntegrationTest.java   | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya-sandbox/blob/03997f7f/metamodel/src/test/java/org/apache/tamaya/metamodel/ext/IntegrationTest.java
----------------------------------------------------------------------
diff --git a/metamodel/src/test/java/org/apache/tamaya/metamodel/ext/IntegrationTest.java
b/metamodel/src/test/java/org/apache/tamaya/metamodel/ext/IntegrationTest.java
index f18d736..edcaca5 100644
--- a/metamodel/src/test/java/org/apache/tamaya/metamodel/ext/IntegrationTest.java
+++ b/metamodel/src/test/java/org/apache/tamaya/metamodel/ext/IntegrationTest.java
@@ -34,6 +34,7 @@ import java.util.List;
 
 import static junit.framework.TestCase.*;
 import static org.assertj.core.api.Assertions.*;
+
 /**
  * Created by atsticks on 06.12.16.
  */
@@ -48,11 +49,11 @@ public class IntegrationTest {
     @Test
     public void testEmptyConfig(){
         Configuration config = MetaConfiguration.createConfiguration(getConfig("IntegrationTests/empty-config.xml"));
-        assertNotNull(config);
-        assertTrue(config.getProperties().isEmpty());
-        assertTrue(config.getContext().getPropertySources().isEmpty());
-        assertTrue(config.getContext().getPropertyConverters().isEmpty());
-        assertTrue(config.getContext().getPropertyFilters().isEmpty());
+        assertThat(config).isNotNull();
+        assertThat(config.getProperties()).isEmpty();
+        assertThat(config.getContext().getPropertySources()).isEmpty();
+        assertThat(config.getContext().getPropertyConverters()).isEmpty();
+        assertThat(config.getContext().getPropertyFilters()).isEmpty();
     }
 
     @Test
@@ -83,7 +84,6 @@ public class IntegrationTest {
                 ConfigurationProvider.getConfigurationBuilder()
                         .addDefaultPropertyConverters()
                         .build());
-
     }
 
     @Test
@@ -98,7 +98,6 @@ public class IntegrationTest {
                 ConfigurationProvider.getConfigurationBuilder()
                         .addDefaultPropertySources()
                         .build());
-
     }
 
     @Test


Mime
View raw message