Package org.sonatype.nexus.rest.model

Examples of org.sonatype.nexus.rest.model.RemoteProxySettingsDTO.addNonProxyHost()


    proxy.setHttpProxySettings(new RemoteHttpProxySettingsDTO());
    proxy.getHttpProxySettings().setProxyHostname("http://somejunkproxyurl");
    proxy.getHttpProxySettings().setProxyPort(555);

    proxy.getNonProxyHosts().clear();
    proxy.addNonProxyHost("localhost");

    final Status status = SettingsMessageUtil.save(resource);

    assertThat(status.isSuccess(), is(true));
  }
View Full Code Here


    settings.getHttpProxySettings().setProxyHostname("bar");

    settings.setHttpsProxySettings(new RemoteHttpProxySettingsDTO());
    settings.getHttpsProxySettings().setProxyHostname("car");

    settings.addNonProxyHost("foo");

    underTest.save();

    assertThat(configuration.getRemoteProxySettings(), is(notNullValue()));
View Full Code Here

    final RemoteProxySettingsDTO configSettings = new RemoteProxySettingsDTO();
    configSettings.setHttpProxySettings(new RemoteHttpProxySettingsDTO());
    configSettings.getHttpProxySettings().setProxyHostname("foo");
    configSettings.setHttpsProxySettings(new RemoteHttpProxySettingsDTO());
    configSettings.getHttpsProxySettings().setProxyHostname("bar");
    configSettings.addNonProxyHost("car1");
    configuration.setRemoteProxySettings(configSettings);

    final RemoteProxy underTest = createJerseyHttpProxy();
    final RemoteProxySettingsDTO settings = underTest.settings();
View Full Code Here

    final RemoteProxy underTest = createJerseyHttpProxy();
    final RemoteProxySettingsDTO settings = underTest.settings();

    assertThat(settings, is(notNullValue()));

    settings.addNonProxyHost("bar");
    underTest.refresh();

    assertThat(settings.getNonProxyHosts(), not(hasItem("bar")));
  }
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.