Package org.springframework.roo.addon.tailor

Examples of org.springframework.roo.addon.tailor.CommandTransformation


     * replacing it with the last fragment of the trigger command, i.e. the
     * first "unnamed" argument.
     */
    @Test
    public void testReplaceVarsForUnnamedArgument() {
        final CommandTransformation rooCommand = new CommandTransformation(
                "cd test-data");
        final String result = TailorHelper.replaceVars(rooCommand,
                "module focus --moduleName ${*}");
        Assert.assertTrue("* was not replaced: " + result,
                result.endsWith("test-data"));
View Full Code Here


     * Test makes sure that the regex used by TailorHelper does not match
     * placeholders that are similar, but different. (Prefix and suffix)
     */
    @Test
    public void testReplaceVarsSimilarPlaceholders() {
        final CommandTransformation rooCommand = new CommandTransformation(
                "project --topLevelPackage com.foo.sample --projectName test --domain otherdomainname");
        final String result = TailorHelper
                .replaceVars(rooCommand,
                        "module create --moduleName ${xdomain} --topLevelPackage ${topLevelPackagex}");
        final String expectedResult = "module create --moduleName ${xdomain} --topLevelPackage ${topLevelPackagex}";
View Full Code Here

TOP

Related Classes of org.springframework.roo.addon.tailor.CommandTransformation

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.