Package org.apache.ambari.server.controller

Examples of org.apache.ambari.server.controller.ConfigurationResponse


    Resource.Type type = Resource.Type.Configuration;

    AmbariManagementController managementController = createMock(AmbariManagementController.class);

    Set<ConfigurationResponse> allResponse = new HashSet<ConfigurationResponse>();
    allResponse.add(new ConfigurationResponse("Cluster100", "type", "tag1", null));
    allResponse.add(new ConfigurationResponse("Cluster100", "type", "tag2", null));
    allResponse.add(new ConfigurationResponse("Cluster100", "type", "tag3", null));

    // set expectations
    expect(managementController.getConfigurations(
        AbstractResourceProviderTest.Matcher.getConfigurationRequestSet(
            "Cluster100", null, null, Collections.<String, String>emptyMap()))).andReturn(allResponse).once();
View Full Code Here


    Resource.Type type = Resource.Type.Configuration;

    AmbariManagementController managementController = createMock(AmbariManagementController.class);

    Set<ConfigurationResponse> allResponse = new HashSet<ConfigurationResponse>();
    allResponse.add(new ConfigurationResponse("Cluster100", "type", "tag1", null));
    allResponse.add(new ConfigurationResponse("Cluster100", "type", "tag2", null));
    allResponse.add(new ConfigurationResponse("Cluster100", "type", "tag3", null));

    Set<ConfigurationResponse> orResponse = new HashSet<ConfigurationResponse>();
    orResponse.add(new ConfigurationResponse("Cluster100", "type", "tag1", null));
    orResponse.add(new ConfigurationResponse("Cluster100", "type", "tag2", null));

    Capture<Set<ConfigurationRequest>> configRequestCapture1 = new Capture<Set<ConfigurationRequest>>();
    Capture<Set<ConfigurationRequest>> configRequestCapture2 = new Capture<Set<ConfigurationRequest>>();

    // set expectations
View Full Code Here

TOP

Related Classes of org.apache.ambari.server.controller.ConfigurationResponse

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.