You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:39:43 UTC

[sling-org-apache-sling-hc-it] 13/37: SLING-2987 - more tests

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.hc.it-1.0.4
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-hc-it.git

commit 59faab1b7c7800a53021af53c29bb3779ce0b455
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Aug 5 15:20:27 2013 +0000

    SLING-2987 - more tests
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/branches/SLING-2987-healthcheck-redesign/it@1510558 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/hc/it/core/HealthCheckSelectorTest.java       | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/test/java/org/apache/sling/hc/it/core/HealthCheckSelectorTest.java b/src/test/java/org/apache/sling/hc/it/core/HealthCheckSelectorTest.java
index 1caf75b..18d03da 100644
--- a/src/test/java/org/apache/sling/hc/it/core/HealthCheckSelectorTest.java
+++ b/src/test/java/org/apache/sling/hc/it/core/HealthCheckSelectorTest.java
@@ -121,6 +121,7 @@ public class HealthCheckSelectorTest {
         testServices.add(new TestHealthCheck("bar"));
         testServices.add(new TestHealthCheck("foo", "bar"));
         testServices.add(new TestHealthCheck("other", "thing"));
+        testServices.add(new TestHealthCheck());
     }
     
     @After
@@ -151,49 +152,49 @@ public class HealthCheckSelectorTest {
     @Test
     public void testAllServices() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck();
-        assertServices(s, true, true, true, true);
+        assertServices(s, true, true, true, true, true);
     }
     
     @Test
     public void testFooTag() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("foo");
-        assertServices(s, true, false, true, false);
+        assertServices(s, true, false, true, false, false);
     }
     
     @Test
     public void testBarTag() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("bar");
-        assertServices(s, false, true, true, false);
+        assertServices(s, false, true, true, false, false);
     }
     
     @Test
     public void testFooAndBar() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("foo", "bar");
-        assertServices(s, false, false, true, false);
+        assertServices(s, false, false, true, false, false);
     }
     
     @Test
     public void testFooMinusBar() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("foo", "-bar");
-        assertServices(s, true, false, false, false);
+        assertServices(s, true, false, false, false, false);
     }
     
     @Test
     public void testOther() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("other");
-        assertServices(s, false, false, false, true);
+        assertServices(s, false, false, false, true, false);
     }
     
     @Test
     public void testMinusOther() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("-other");
-        assertServices(s, true, true, true, false);
+        assertServices(s, true, true, true, false, true);
     }
     
     @Test
     public void testMinusOtherFoo() {
         final List<HealthCheck> s = selector.getTaggedHealthCheck("-other", "-foo");
-        assertServices(s, false, true, false, false);
+        assertServices(s, false, true, false, false, true);
     }
     
     @Test

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.