Package org.apache.torque.generator.configuration

Examples of org.apache.torque.generator.configuration.UnitConfiguration


                    "opt${}i\\on",
                    "ValueWith${}Special\\Chars");
            options.setGlobalOption(optionWithSpecialChars);
        }

        UnitConfiguration unitConfiguration = new UnitConfiguration();
        unitConfiguration.setOptions(options);
        ControllerState controllerState = new ControllerState();
        controllerState.setUnitConfiguration(unitConfiguration);
        tokenReplacer = new TokenReplacer(controllerState);
    }
View Full Code Here


{
    private ControllerState controllerState = new ControllerState();

    public SourceToXmlTest()
    {
        UnitConfiguration unitConfiguration = new UnitConfiguration();
        unitConfiguration.setEntityReferences(new EntityReferences());
        controllerState.setUnitConfiguration(unitConfiguration);
    }
View Full Code Here

{
    private ControllerState controllerState = new ControllerState();

    public XmlParserTest()
    {
        UnitConfiguration unitConfiguration = new UnitConfiguration();
        EntityReferences entityReferences = new EntityReferences();
        File schemaFile = new File("src/test/resources/"
                + "org/apache/torque/generator/source/xml/schema.xsd");
        byte[] schemaContent;
        try
        {
            schemaContent = FileUtils.readFileToByteArray(schemaFile);
        }
        catch (IOException e)
        {
            throw new RuntimeException(e);
        }
        entityReferences.addEntityReference(
                "http://db.apache.org/torque/4.0/generator/test/namespace.xsd",
                schemaContent);
        unitConfiguration.setEntityReferences(entityReferences);
        controllerState.setUnitConfiguration(unitConfiguration);
    }
View Full Code Here

                    "Source element " + addTo + " does not exist");
        }
        addToSourceElement = sourceElementList.get(0);


        UnitConfiguration unitConfiguration
                = controllerState.getUnitConfiguration();
        ConfigurationHandlers configurationHandlers
                = unitConfiguration.getConfigurationHandlers();
        Controller helperController = new Controller();

        SourceElement newSourceElement = new SourceElement(newElement);
        boolean newSourceElementAdded = false;
        try
View Full Code Here

{
    private ControllerState controllerState = new ControllerState();

    public PropertiesParserTest()
    {
        UnitConfiguration unitConfiguration = new UnitConfiguration();
        unitConfiguration.setEntityReferences(new EntityReferences());
        controllerState.setUnitConfiguration(unitConfiguration);
    }
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.configuration.UnitConfiguration

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.