mirror of https://github.com/apache/jclouds.git
Removed nil extension from Predicate protocol and added com.google.common.base.Predicate extension.
This commit is contained in:
parent
6708106626
commit
4191df74a8
|
@ -28,5 +28,5 @@
|
|||
(reify com.google.common.base.Predicate
|
||||
(apply [this input] (p input))))
|
||||
|
||||
nil
|
||||
(to-predicate [_] nil))
|
||||
com.google.common.base.Predicate
|
||||
(to-predicate [p] p))
|
|
@ -62,6 +62,9 @@ list, Alan Dipert and MeikelBrandmeyer."
|
|||
(is (= 1 (count (nodes *compute*))))
|
||||
(is (= 1 (count (nodes-in-group *compute* "fred"))))
|
||||
(is (= 1 (count (nodes-with-details-matching *compute* (in-group "fred")))))
|
||||
(is (= 1 (count (nodes-with-details-matching *compute*
|
||||
(reify com.google.common.base.Predicate
|
||||
(apply [this input] (= (.getGroup input) "fred")))))))
|
||||
(is (= 0 (count (nodes-with-details-matching *compute* (in-group "othergroup")))))
|
||||
(suspend-nodes-matching *compute* (in-group "fred"))
|
||||
(is (suspended? (first (nodes-with-details-matching *compute* (in-group "fred")))))
|
||||
|
|
Loading…
Reference in New Issue