Package com.openshift.client.fakes

Examples of com.openshift.client.fakes.EmptySystemPropertiesFake


      protected void initFile(Writer writer) throws IOException {
        writer.append(KEY_RHLOGIN).append('=').append(USERNAME2).append('\n');
      }

    };
    IOpenShiftConfiguration configuration = new EmptySystemPropertiesFake(userConfiguration);
    configuration.setRhlogin(USERNAME3);
    assertEquals(USERNAME3, configuration.getRhlogin());
  }
View Full Code Here


      protected void initFile(Writer writer) throws IOException {
        writer.append(KEY_RHLOGIN).append('=').append(USERNAME2).append('\n');
      }

    };
    IOpenShiftConfiguration configuration = new EmptySystemPropertiesFake(userConfiguration);
    assertEquals(USERNAME2, configuration.getRhlogin());
  }
View Full Code Here

    assertEquals(USERNAME2, configuration.getRhlogin());
  }

  @Test
  public void fallsBackToDefaultUrl() throws OpenShiftException, IOException {
    IOpenShiftConfiguration configuration = new EmptySystemPropertiesFake(
        new UserConfigurationFake(new SystemConfigurationFake(new DefaultConfiguration())));
    assertNotNull(configuration.getLibraServer());
    assertTrue(configuration.getLibraServer().contains(DefaultConfiguration.LIBRA_SERVER));
    assertNull(configuration.getRhlogin());
  }
View Full Code Here

TOP

Related Classes of com.openshift.client.fakes.EmptySystemPropertiesFake

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.