brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [5/9] incubator-brooklyn git commit: Update HttpAsserts with equivalent change to that merged in a1e21b3a2
Date Wed, 04 Nov 2015 15:47:50 GMT
Update HttpAsserts with equivalent change to that merged in a1e21b3a2


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/70a71891
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/70a71891
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/70a71891

Branch: refs/heads/master
Commit: 70a718911ca7800bcff4a5ab8aeef20763a3974a
Parents: a1e21b3
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Authored: Mon Nov 2 20:26:18 2015 +0000
Committer: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Committed: Mon Nov 2 20:26:18 2015 +0000

----------------------------------------------------------------------
 .../java/org/apache/brooklyn/util/http/HttpAsserts.java     | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/70a71891/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpAsserts.java
----------------------------------------------------------------------
diff --git a/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpAsserts.java b/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpAsserts.java
index bbfdbfb..35d8252 100644
--- a/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpAsserts.java
+++ b/utils/common/src/main/java/org/apache/brooklyn/util/http/HttpAsserts.java
@@ -242,6 +242,15 @@ public class HttpAsserts {
         });
     }
 
+    public static void assertContentEventuallyMatches(Map<String,?> flags, final String
url, final String regex) {
+        Asserts.succeedsEventually(flags, new Runnable() {
+            @Override
+            public void run() {
+                assertContentMatches(url, regex);
+            }
+        });
+    }
+
 
 
     /**


Mime
View raw message