[jboss-cvs] JBossAS SVN: r104405 - trunk/testsuite/src/main/org/jboss/test/cluster/channelfactory/managed.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 3 18:18:22 EDT 2010
Author: bstansberry at jboss.com
Date: 2010-05-03 18:18:22 -0400 (Mon, 03 May 2010)
New Revision: 104405
Modified:
trunk/testsuite/src/main/org/jboss/test/cluster/channelfactory/managed/ManagedObjectTestUtil.java
Log:
Improve assertions
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/channelfactory/managed/ManagedObjectTestUtil.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/channelfactory/managed/ManagedObjectTestUtil.java 2010-05-03 22:18:08 UTC (rev 104404)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/channelfactory/managed/ManagedObjectTestUtil.java 2010-05-03 22:18:22 UTC (rev 104405)
@@ -162,7 +162,8 @@
result.stackName = getSimpleValue(compVal, "stackName", String.class);
MetaValue mv = compVal.get("protocolStackConfiguration");
- assertTrue(mv instanceof CollectionValue);
+ assertNotNull(result.stackName + " has a protocolStackConfiguration", mv);
+ assertTrue("protocolStackConfiguration (" + mv.getClass().getSimpleName() + ") is a CollectionValue",mv instanceof CollectionValue);
CollectionValue config = (CollectionValue) mv;
MetaValue[] elements = config.getElements();
for (MetaValue element : elements)
@@ -174,7 +175,8 @@
validateObjectNameMetaValue(mv);
mv = compVal.get("protocolObjectNames");
- assertTrue(mv instanceof CollectionValue);
+ assertNotNull(result.stackName + " has protocolObjectNames", mv);
+ assertTrue("protocolObjectNames (" + mv.getClass().getSimpleName() + ") is a CollectionValue", mv instanceof CollectionValue);
CollectionValue protocolNames = (CollectionValue) mv;
elements = protocolNames.getElements();
for (MetaValue element : elements)
More information about the jboss-cvs-commits
mailing list