Package com.openshift.client.fakes

Examples of com.openshift.client.fakes.SystemConfigurationFake


  }
 
  @Test
  public void disableBadSSLCiphersShouldDefaultToNo() throws OpenShiftException, IOException {
    // pre-condition
    SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) {

      @Override
      protected void init(Properties properties) {
        properties.put(KEY_DISABLE_BAD_SSL_CIPHERS, "bingobongo");
      }

    };
   
    // operation
    ConfigurationOptions option = systemConfiguration.getDisableBadSSLCiphers();
   
    // verification
    assertThat(option).isEqualTo(ConfigurationOptions.NO);
  }
View Full Code Here


  }

  @Test
  public void disableBadSSLCiphersShouldbeYes() throws OpenShiftException, IOException {
    // pre-condition
    SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) {

      @Override
      protected void init(Properties properties) {
        properties.put(KEY_DISABLE_BAD_SSL_CIPHERS, "\"yes\"");
      }

    };
   
    // operation
    ConfigurationOptions option = systemConfiguration.getDisableBadSSLCiphers();
   
    // verification
    assertThat(option).isEqualTo(ConfigurationOptions.YES);
  }
View Full Code Here

TOP

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

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.