sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-junit-healthcheck] 08/45: SLING-1963 - do not check number of tests if < 0
Date Tue, 07 Nov 2017 09:51:24 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 5cdc9281159943f24ee4ff6ccb7ad2d0c305bcad
Author: Bertrand Delacretaz <bdelacretaz@apache.org>
AuthorDate: Mon Feb 28 15:04:49 2011 +0000

    SLING-1963 - do not check number of tests if < 0
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/junit/remote@1075364
13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/junit/remote/testrunner/SlingRemoteTestRunner.java      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/junit/remote/testrunner/SlingRemoteTestRunner.java
b/src/main/java/org/apache/sling/junit/remote/testrunner/SlingRemoteTestRunner.java
index d8e9118..8399d95 100644
--- a/src/main/java/org/apache/sling/junit/remote/testrunner/SlingRemoteTestRunner.java
+++ b/src/main/java/org/apache/sling/junit/remote/testrunner/SlingRemoteTestRunner.java
@@ -97,9 +97,11 @@ public class SlingRemoteTestRunner extends ParentRunner<SlingRemoteTest>
{
                 testParameters.getJunitServletUrl(), testHttpClient.getTestExecutionPath());
         
         // Check that number of tests is as expected
-        assertEquals("Expecting " + testParameters.getExpectedNumberOfTests() + " tests",
-                testParameters.getExpectedNumberOfTests(),
-                children.size());
+        if(testParameters.getExpectedNumberOfTests() >= 0) {
+            assertEquals("Expecting " + testParameters.getExpectedNumberOfTests() + " tests",
+                    testParameters.getExpectedNumberOfTests(),
+                    children.size());
+        }
     }
     
     @Override

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

Mime
View raw message