Package org.castor.cpa.test.framework.xml

Examples of org.castor.cpa.test.framework.xml.Configuration


        _defaultDatabaseName = cpactfconf.getDefaultDatabase();
        _defaultTransactionName = cpactfconf.getDefaultTransaction();
       
        Iterator cfgIter = cpactfconf.iterateConfiguration();
        while (cfgIter.hasNext()) {
            Configuration config = (Configuration) cfgIter.next();
            _configurations.put(config.getName(), config);
        }
       
        Iterator dbIter = cpactfconf.iterateDatabase();
        while (dbIter.hasNext()) {
            Database database = (Database) dbIter.next();
View Full Code Here


                createDatabase(cfg, db, mappings),
                createTransactionDemarcation(tx));
    }
   
    private String[] createMappings(final String cfg) {
        Configuration config = _configurations.get(cfg);
       
        int count = config.getMappingCount();
        String[] mappings = new String[count];
        for (int i = 0; i < count; i++) {
            Mapping mapping = config.getMapping(i);
            if (mapping.getHref() == null) {
                throw new CPAConfigException("No mapping URL specified "
                        + "in mapping config '" + cfg + "'.");
            }
            mappings[i] = mapping.getHref();
View Full Code Here

TOP

Related Classes of org.castor.cpa.test.framework.xml.Configuration

Copyright © 2018 www.massapicom. 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.