brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [12/18] brooklyn-server git commit: fix test for new destroyOnStop parameter
Date Fri, 04 Mar 2016 16:15:57 GMT
fix test for new destroyOnStop parameter


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/385621bb
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/385621bb
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/385621bb

Branch: refs/heads/master
Commit: 385621bb6d1941c951b4db277957911403ac300c
Parents: ba8a20d
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Wed Feb 24 15:24:21 2016 -0800
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Wed Feb 24 15:24:36 2016 -0800

----------------------------------------------------------------------
 .../camp/brooklyn/catalog/SpecParameterUnwrappingTest.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/385621bb/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/SpecParameterUnwrappingTest.java
----------------------------------------------------------------------
diff --git a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/SpecParameterUnwrappingTest.java
b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/SpecParameterUnwrappingTest.java
index 1f7ba48..29788ce 100644
--- a/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/SpecParameterUnwrappingTest.java
+++ b/camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/SpecParameterUnwrappingTest.java
@@ -294,8 +294,9 @@ public class SpecParameterUnwrappingTest extends AbstractYamlTest {
                 "services:",
                 "- type: " + ver(SYMBOLIC_NAME));
         List<SpecParameter<?>> params = spec.getParameters();
-        assertEquals(params.size(), 2); // sample + defaultDisplayName
-        assertEquals(ImmutableSet.copyOf(params), ImmutableSet.copyOf(BasicSpecParameter.fromClass(mgmt(),
ConfigAppForTest.class)));
+        assertEquals(params.size(), 3, "Wrong number of params: "+params); // sample + defaultDisplayName
+ destroy_on_stop
+        assertEquals(ImmutableSet.copyOf(params), 
+            ImmutableSet.copyOf(BasicSpecParameter.fromClass(mgmt(), ConfigAppForTest.class)));
     }
 
     @Test


Mime
View raw message