You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by po...@apache.org on 2019/04/24 09:35:47 UTC
[incubator-tamaya-sandbox] branch master updated: Use more assertJ
This is an automated email from the ASF dual-hosted git repository.
pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tamaya-sandbox.git
The following commit(s) were added to refs/heads/master by this push:
new ec3eed6 Use more assertJ
new 529eb57 Merge branch 'master' of https://gitbox.apache.org/repos/asf/incubator-tamaya-sandbox
ec3eed6 is described below
commit ec3eed66c88bf024b11c2fe158133d15cf470e0a
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Wed Apr 24 10:40:25 2019 +0200
Use more assertJ
and remove redundant brackets
---
.../org/apache/tamaya/management/internal/ManagedConfigTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/management/src/test/java/org/apache/tamaya/management/internal/ManagedConfigTest.java b/management/src/test/java/org/apache/tamaya/management/internal/ManagedConfigTest.java
index 1ba33c3..17c3fa3 100644
--- a/management/src/test/java/org/apache/tamaya/management/internal/ManagedConfigTest.java
+++ b/management/src/test/java/org/apache/tamaya/management/internal/ManagedConfigTest.java
@@ -82,13 +82,13 @@ public class ManagedConfigTest {
@Test
public void testGetTransitiveAreas() {
- Set<String> sections = (bean.getTransitiveSections());
- Set<String> sectionsNT = (bean.getSections());
+ Set<String> sections = bean.getTransitiveSections();
+ Set<String> sectionsNT = bean.getSections();
assertThat(sections).isNotNull();
assertThat(sections.contains("java")).isTrue();
assertThat(sections.contains("sun")).isTrue();
assertThat(sections.contains("sun.os")).isTrue();
- assertThat(sectionsNT.size() < sections.size()).isTrue();
+ assertThat(sections.size()).isGreaterThan(sectionsNT.size());
}
@Test