Package org.apache.ambari.scom

Examples of org.apache.ambari.scom.HostInfoProvider


  @Test
  public void testSetServiceState_IfStateAlreadySetToDesired() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here


  @Test
  public void testSetServiceState_IfStateUnknown() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetServiceState_FromInstalledToStarted() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetServiceStateFromInstalledToStartedWhenOneOfTheComponentsAlreadyStarted() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetHostComponentState_IfStateUnknown() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetHostComponentState_IfStateAlreadySetToDesired() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetHostComponentState_FromInstalledToStarted() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testHDP2ServicesAndComponents() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider("clusterproperties_HDP2.txt", "myCluster", "HDP-2.0.6");

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetServiceState_IfServiceIsClientOnly() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

  @Test
  public void testSetHostComponentState_IfHostComponentIsClientOnly() {
    StateProvider mockStateProvider = createStrictMock(StateProvider.class);
    ClusterDefinitionProvider mockClusterDefinitionProvider = createStrictMock(ClusterDefinitionProvider.class);
    HostInfoProvider mockHostInfoProvider = createStrictMock(HostInfoProvider.class);

    TestClusterDefinitionProvider testClusterDefinitionProvider = new TestClusterDefinitionProvider();

    expect(mockClusterDefinitionProvider.getClusterName()).andDelegateTo(testClusterDefinitionProvider);
    expect(mockClusterDefinitionProvider.getVersionId()).andDelegateTo(testClusterDefinitionProvider);
View Full Code Here

TOP

Related Classes of org.apache.ambari.scom.HostInfoProvider

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.