cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [28/30] git commit: updated refs/heads/master to 64ff67d
Date Fri, 14 Aug 2015 19:47:51 GMT
CLOUDSTACK-8656: use catch block for validation

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

Branch: refs/heads/master
Commit: adcd0c0c0d196c7ec65120acc85e644069985f9c
Parents: 384a2e9
Author: Daan Hoogland <daan@onecht.net>
Authored: Fri Aug 14 17:25:04 2015 +0200
Committer: Daan Hoogland <daan@onecht.net>
Committed: Fri Aug 14 17:25:04 2015 +0200

----------------------------------------------------------------------
 .../spring/module/factory/ModuleBasedContextFactoryTest.java      | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/adcd0c0c/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java
----------------------------------------------------------------------
diff --git a/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java
b/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java
index 037fe15..d8d109f 100644
--- a/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java
+++ b/framework/spring/module/src/test/java/org/apache/cloudstack/spring/module/factory/ModuleBasedContextFactoryTest.java
@@ -103,16 +103,19 @@ public class ModuleBasedContextFactoryTest {
             assertEquals(parent, parentBean);
         }
 
+        int notfound = 0;
         for (String notThere : notTheres) {
             try {
                 context.getBean(notThere, String.class);
                 fail();
             } catch (NoSuchBeanDefinitionException e) {
+                notfound++;
             }
         }
 
         int count = context.getBean("count", InstantiationCounter.class).getCount();
 
+        assertEquals(notTheres.length, notfound);
         assertEquals(order, count);
     }
 


Mime
View raw message