Package org.jboss.as.cli.completion.mock

Examples of org.jboss.as.cli.completion.mock.MockCommandContext


        root.addOperation(op);

        op = new MockOperation("operation-properties-a-b");
        root.addOperation(op);

        ctx = new MockCommandContext();
        ctx.setOperationCandidatesProvider(new MockOperationCandidatesProvider(root));
        completer = new OperationRequestCompleter();
    }
View Full Code Here


        op = new MockOperation("operation-properties-one-two-three");
        op.setPropertyNames(Arrays.asList("one", "two", "three"));
        root.addOperation(op);

        ctx = new MockCommandContext();
        ctx.setOperationCandidatesProvider(new MockOperationCandidatesProvider(root));
        completer = new OperationRequestCompleter();
    }
View Full Code Here

        super();
        init();
    }

    protected void init() {
        ctx = new MockCommandContext();
        ctx.setOperationCandidatesProvider(new MockOperationCandidatesProvider(root));
        completer = new OperationRequestCompleter();
    }
View Full Code Here

    }

    @Test
    public void testArgumentValueConverter() throws Exception {

        final ModelNode node = new HeadersArgumentValueConverter(new MockCommandContext()).fromString("{ rollout " +
                "groupA(rolling-to-servers=true,max-failure-percentage=20) ^ groupB, groupC," +
                "groupD(rolling-to-servers=true,max-failed-servers=1) ^ groupE rollback-across-groups}");

        final ModelNode expectedHeaders = new ModelNode();
        final ModelNode rolloutPlan = expectedHeaders.get(Util.ROLLOUT_PLAN);
View Full Code Here

TOP

Related Classes of org.jboss.as.cli.completion.mock.MockCommandContext

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.