Package org.apache.avalon.framework.configuration

Examples of org.apache.avalon.framework.configuration.DefaultConfiguration.addChild()


        {
            Configuration childState = proxies[ i ].saveState();
            if ( childState != null )
            {
                empty = false;
                state.addChild( childState );
            }
        }

        // Only return a state if it contains information.
        if ( empty )
View Full Code Here


                List configs = new LinkedList();
                while (iter.hasNext())
                {
                        TestElement item = (TestElement)iter.next();
                        DefaultConfiguration config = new DefaultConfiguration("node","node");
                        config.addChild(getConfigForTestElement(null,item));
                        List configList = getConfigsFromTree(subTree.getTree(item));
                        Iterator iter2 = configList.iterator();
                        while(iter2.hasNext())
                        {
                                config.addChild((Configuration)iter2.next());
View Full Code Here

                        config.addChild(getConfigForTestElement(null,item));
                        List configList = getConfigsFromTree(subTree.getTree(item));
                        Iterator iter2 = configList.iterator();
                        while(iter2.hasNext())
                        {
                                config.addChild((Configuration)iter2.next());
                        }
                        configs.add(config);
                }
                return configs;
        }
View Full Code Here

                }

                SampleResult[] subResults = result.getSubResults();
                for(int i = 0;i < subResults.length;i++)
                {
                        config.addChild(getConfiguration(subResults[i],funcTest));
                }

                AssertionResult[] assResults = result.getAssertionResults();

                if(funcTest)
View Full Code Here

                AssertionResult[] assResults = result.getAssertionResults();

                if(funcTest)
                {
                        config.addChild(getConfigForTestElement(null,result.getSamplerData()));
                        for(int i = 0;i < assResults.length;i++)
                        {
                                config.addChild(getConfiguration(assResults[i]));
                        }
                        config.addChild(getConfiguration(result.getResponseData()));
View Full Code Here

                if(funcTest)
                {
                        config.addChild(getConfigForTestElement(null,result.getSamplerData()));
                        for(int i = 0;i < assResults.length;i++)
                        {
                                config.addChild(getConfiguration(assResults[i]));
                        }
                        config.addChild(getConfiguration(result.getResponseData()));
                }
                // Determine which of the assertion results to save and
                // whether to save the response data
View Full Code Here

                        config.addChild(getConfigForTestElement(null,result.getSamplerData()));
                        for(int i = 0;i < assResults.length;i++)
                        {
                                config.addChild(getConfiguration(assResults[i]));
                        }
                        config.addChild(getConfiguration(result.getResponseData()));
                }
                // Determine which of the assertion results to save and
                // whether to save the response data
                else
                {
View Full Code Here

                // whether to save the response data
                else
                {
                        if (assertionsResultsToSave == SAVE_ALL_ASSERTIONS)
                        {
                                config.addChild(getConfigForTestElement(null,result.getSamplerData()));
                                for(int i = 0;i < assResults.length;i++)
                                {
                                        config.addChild(getConfiguration(assResults[i]));
                                }
                        }
View Full Code Here

                        if (assertionsResultsToSave == SAVE_ALL_ASSERTIONS)
                        {
                                config.addChild(getConfigForTestElement(null,result.getSamplerData()));
                                for(int i = 0;i < assResults.length;i++)
                                {
                                        config.addChild(getConfiguration(assResults[i]));
                                }
                        }
                        else if ((assertionsResultsToSave == SAVE_FIRST_ASSERTION)
                                 && assResults.length > 0)
                        {
View Full Code Here

                                }
                        }
                        else if ((assertionsResultsToSave == SAVE_FIRST_ASSERTION)
                                 && assResults.length > 0)
                        {
                                config.addChild(getConfiguration(assResults[0]));
                        }

                        if (saveResponseData)
                        {
                                config.addChild(getConfiguration(result.getResponseData()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.