Package org.jclouds.cloudstack.features

Examples of org.jclouds.cloudstack.features.TemplateClient


        .build());

    @Test
    public void testTemplatesCommandPrintsTheTemplates() throws Exception {
        final TemplatesCommand templatesCommand = new TemplatesCommand(defaultProviderConfig);
        final TemplateClient templateClient = mock(TemplateClient.class);

        when(client.getTemplateClient()).thenReturn(templateClient);
        when(templateClient.listTemplates()).thenReturn(templates);

        templatesCommand.doExecuteWithContext(client, out);
        out.close();
        assertThat(byteArrayOutputStream.toString()).contains("template-1").contains("template-one");
    }
View Full Code Here


        .build());

    @Test
    public void testTemplatesCommandPrintsTheTemplates() throws Exception {
        final TemplatesCommand templatesCommand = new TemplatesCommand(defaultProviderConfig);
        final TemplateClient templateClient = mock(TemplateClient.class);

        when(client.getTemplateClient()).thenReturn(templateClient);
        when(templateClient.listTemplates()).thenReturn(templates);

        templatesCommand.doExecuteWithContext(client, out);
        out.close();
        assertThat(byteArrayOutputStream.toString()).contains("template-1").contains("template-one");
    }
View Full Code Here

TOP

Related Classes of org.jclouds.cloudstack.features.TemplateClient

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.