Repository: ambari
Updated Branches:
  refs/heads/trunk 93e32e31d -> 5b72f0b54


AMBARI-5152. Unit test failing on trunk (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5b72f0b5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5b72f0b5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5b72f0b5

Branch: refs/heads/trunk
Commit: 5b72f0b54cbf0350cfbbad78ae9125174ff9afd2
Parents: 93e32e3
Author: Andrew Onischuk <[email protected]>
Authored: Sun Mar 16 12:59:20 2014 -0700
Committer: Andrew Onischuk <[email protected]>
Committed: Sun Mar 16 12:59:20 2014 -0700

----------------------------------------------------------------------
 .../org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5b72f0b5/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java
 
b/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java
index b95a8bf..af2b247 100644
--- 
a/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java
+++ 
b/ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog150Test.java
@@ -137,6 +137,9 @@ public class UpgradeCatalog150Test {
     
hostComponentStateEntity.setServiceComponentDesiredStateEntity(componentDesiredStateEntity);
     
     
componentDesiredStateEntity.getHostComponentStateEntities().add(hostComponentStateEntity);
+    componentDesiredStateEntity.setHostComponentDesiredStateEntities(new 
ArrayList<HostComponentDesiredStateEntity>());
+    
componentDesiredStateEntity.getHostComponentDesiredStateEntities().add(hostComponentDesiredStateEntity);
+    
     hostEntity.getHostComponentStateEntities().add(hostComponentStateEntity);
     
hostEntity.getHostComponentDesiredStateEntities().add(hostComponentDesiredStateEntity);
     
clusterServiceEntity.getServiceComponentDesiredStateEntities().add(componentDesiredStateEntity);

Reply via email to