Package org.sonatype.nexus.client.core.subsystem.config

Examples of org.sonatype.nexus.client.core.subsystem.config.RemoteProxy.save()


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

    settings.addNonProxyHost("foo");

    underTest.save();

    assertThat(configuration.getRemoteProxySettings(), is(notNullValue()));

    assertThat(configuration.getRemoteProxySettings().getHttpProxySettings(), is(notNullValue()));
    assertThat(configuration.getRemoteProxySettings().getHttpProxySettings().getProxyHostname(), is("bar"));
View Full Code Here


    assertThat(settings.getNonProxyHosts(), hasItem("car1"));

    configSettings.getHttpProxySettings().setProxyHostname("foo1");
    configSettings.getHttpsProxySettings().setProxyHostname("bar1");
    configSettings.addNonProxyHost("car2");
    underTest.save();

    assertThat(configuration.getRemoteProxySettings(), is(notNullValue()));

    assertThat(configuration.getRemoteProxySettings().getHttpProxySettings(), is(notNullValue()));
    assertThat(configuration.getRemoteProxySettings().getHttpProxySettings().getProxyHostname(), is("foo1"));
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.