diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-12 10:34:39 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-12 10:34:39 +0000 |
commit | 38285e0e1147042b519957958083e537e6d90fc9 (patch) | |
tree | 317bcc846acb2bc8365ca2aedb76d9066152de40 /standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java | |
parent | 104f7547cb92ab39251308f15ddc45d515a48ae2 (diff) |
Minor unification of tests.
Diffstat (limited to 'standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java')
-rw-r--r-- | standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java b/standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java index 8ca20fdf7cd..3025a641ec9 100644 --- a/standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java +++ b/standalone-container/src/test/java/com/yahoo/container/standalone/StandaloneSubscriberTest.java @@ -15,9 +15,8 @@ import java.util.Map; import java.util.Set; import static com.yahoo.container.standalone.StandaloneContainer.withContainerModel; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.number.OrderingComparison.greaterThan; -import static org.junit.Assert.assertThat; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; /** * @author Tony Vaagenes @@ -42,15 +41,15 @@ public class StandaloneSubscriberTest { keys.add(componentsKey); Subscriber subscriber = new StandaloneSubscriberFactory(root).getSubscriber(keys); Map<ConfigKey<ConfigInstance>, ConfigInstance> config = subscriber.config(); - assertThat(config.size(), is(2)); + assertEquals(2, config.size()); PlatformBundlesConfig platformBundlesConfig = (PlatformBundlesConfig) config.get(platformBundlesKey); ApplicationBundlesConfig applicationBundlesConfig = (ApplicationBundlesConfig) config.get(applicationBundlesKey); ComponentsConfig componentsConfig = (ComponentsConfig) config.get(componentsKey); - assertThat(platformBundlesConfig.bundlePaths().size(), is(0)); - assertThat(applicationBundlesConfig.bundles().size(), is(0)); - assertThat(componentsConfig.components().size(), greaterThan(10)); + assertEquals(0, platformBundlesConfig.bundlePaths().size()); + assertEquals(0, applicationBundlesConfig.bundles().size()); + assertTrue(componentsConfig.components().size() > 10); return null; }); } |