Package org.impalaframework.module.source

Examples of org.impalaframework.module.source.SingleStringSourceDelegate


    }
   
    public void testInvalidBrackets() {
        SimpleRootModuleDefinition rootDefinition = new SimpleRootModuleDefinition(rootModuleName, new String[] { "parent-context" });
        String moduleString = "module (( null: set1, set2; mock: set3, duff )";
        SingleStringSourceDelegate builder = new SingleStringSourceDelegate(rootDefinition, moduleString);
        try {
            builder.doDefinitionSplit();
            fail(IllegalArgumentException.class.getName());
        }
        catch (ConfigurationException e) {
            assertEquals("Invalid definition string module (( null: set1, set2; mock: set3, duff ). Invalid character '(' at column 9", e.getMessage());
        }
       
        moduleString = "module ( null: set1, set2; mock: set3, duff ))";
        builder = new SingleStringSourceDelegate(rootDefinition, moduleString);
        try {
            builder.doDefinitionSplit();
            fail(IllegalArgumentException.class.getName());
        }
        catch (ConfigurationException e) {
            assertEquals("Invalid definition string module ( null: set1, set2; mock: set3, duff )). Invalid character ')' at column 46", e.getMessage());
        }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.source.SingleStringSourceDelegate

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.