Package org.jclouds.cloudstack.features

Examples of org.jclouds.cloudstack.features.ZoneClient.listZones()


    @Test
    public void testZonesCommandPrintsZones() throws Exception {
        final ZonesCommand zonesCommand = new ZonesCommand(defaultProviderConfig);
        final ZoneClient zoneClient = mock(ZoneClient.class);
        when(client.getZoneClient()).thenReturn(zoneClient);
        when(zoneClient.listZones()).thenReturn(zones);

        zonesCommand.doExecuteWithContext(client, out);
        out.close();

        final String result = byteArrayOutputStream.toString();
View Full Code Here


    @Test
    public void testZonesCommandPrintsZones() throws Exception {
        final ZonesCommand zonesCommand = new ZonesCommand(defaultProviderConfig);
        final ZoneClient zoneClient = mock(ZoneClient.class);
        when(client.getZoneClient()).thenReturn(zoneClient);
        when(zoneClient.listZones()).thenReturn(zones);

        zonesCommand.doExecuteWithContext(client, out);
        out.close();

        final String result = byteArrayOutputStream.toString();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.