[teiid-commits] teiid SVN: r833 - trunk/common-internal/src/test/java/com/metamatrix/common/config/xml.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Thu Apr 23 14:36:01 EDT 2009


Author: vhalbert at redhat.com
Date: 2009-04-23 14:36:01 -0400 (Thu, 23 Apr 2009)
New Revision: 833

Modified:
   trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java
Log:
Teiid - 528 - testcase to verify obtaining properties from dependent object tyes

Modified: trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java
===================================================================
--- trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java	2009-04-23 18:34:17 UTC (rev 832)
+++ trunk/common-internal/src/test/java/com/metamatrix/common/config/xml/TestXMLConfigurationImportExportUtility.java	2009-04-23 18:36:01 UTC (rev 833)
@@ -406,6 +406,8 @@
             	fail("Didnt find 6 deployed services for VM " + vm.getName());
             }
             
+            
+            boolean foundprops = false;
             boolean isenabled = false;
             for (Iterator<DeployedComponent> it=depsvcs.iterator(); it.hasNext();) {
             	DeployedComponent dc = it.next();
@@ -417,11 +419,24 @@
             		} 
             		
             	}
+            	
+            	Properties props = configModel.getConfiguration().getAllPropertiesForComponent(dc.getDeployedComponentDefnID());
+            	
+            	if (dc.getServiceComponentDefnID().getName().equalsIgnoreCase("runtimemetadataservice")) {
+            		String propvalue = props.getProperty("ExceptionOnMaxRows") ;
+            		if (propvalue != null && propvalue.equals("true") ) {
+            			foundprops = true;
+            		}
+            	}
             }
             if (! isenabled) {
             	fail("Did not find the QueryService deployed service that wase enabled");
             }
             
+            if (! foundprops) {
+            	fail("Did not find the dependent property from deployed runtimemetadataservice");
+            }
+            
             String fileToExport = UnitTestUtil.getTestScratchPath() + ("/exported_config.xml");
             
             cma.writeConfigurationModel(fileToExport, configModel, "TestCase");




More information about the teiid-commits mailing list