Examples of save()


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

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

  @Before
  public void setBaseUrl() {
    final RestApi restApi = serverConfiguration().restApi();
    restApi.settings().setBaseUrl(nexus().getUrl().toExternalForm());
    restApi.settings().setForceBaseUrl(true);
    restApi.save();
  }

  protected MavenHostedRepository createYumEnabledRepository(final String repositoryId) {
    final MavenHostedRepository repository = repositories()
        .create(MavenHostedRepository.class, repositoryId)
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenGroupRepository.save()

  public void statusGroup() {
    final String id = repositoryIdForTest();
    final MavenGroupRepository repository = repositories().create(MavenGroupRepository.class, id)
        .ofRepositories("central", "releases", "snapshots");
    assertThat(repository.status().isInService(), is(false));
    repository.save();
    assertThat(repository.status().isInService(), is(true));
    assertThat(repository.putOutOfService().status().isInService(), is(false));
    assertThat(repository.putInService().status().isInService(), is(true));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenHostedRepository.save()

  @Test
  public void statusHosted() {
    final String id = repositoryIdForTest();
    final MavenHostedRepository repository = repositories().create(MavenHostedRepository.class, id);
    assertThat(repository.status().isInService(), is(false));
    repository.save();
    assertThat(repository.status().isInService(), is(true));
    assertThat(repository.putOutOfService().status().isInService(), is(false));
    assertThat(repository.putInService().status().isInService(), is(true));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenM1VirtualRepository.save()

  public void statusShadow() {
    final String id = repositoryIdForTest();
    final MavenM1VirtualRepository repository = repositories().create(MavenM1VirtualRepository.class, id)
        .ofRepository("apache-snapshots");
    assertThat(repository.status().isInService(), is(false));
    repository.save();
    assertThat(repository.status().isInService(), is(true));
    assertThat(repository.putOutOfService().status().isInService(), is(false));
    assertThat(repository.putInService().status().isInService(), is(true));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.repository.maven.MavenProxyRepository.save()

  public void statusProxy() {
    final String id = repositoryIdForTest();
    final MavenProxyRepository repository = repositories().create(MavenProxyRepository.class, id)
        .asProxyOf("http://localhost:8080");
    assertThat(repository.status().isInService(), is(false));
    repository.save();
    assertThat(repository.status().isInService(), is(true));
    assertThat(repository.putOutOfService().status().isInService(), is(false));
    assertThat(repository.putInService().status().isInService(), is(true));
  }
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.security.Privilege.save()

        .withMethods("read")
        .withRepositoryGroupId("public")
        .withTargetId(targetId)
        .create().iterator().next();

    saved.save();
  }

  @Test(expected = NexusClientNotFoundException.class)
  public void deletePrivilege() {
    final String targetId = createRepoTarget("deletePrivileges").id();
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityA.save()

    final CapabilityA read = capabilities().get(CapabilityA.class, created.id());
    created.remove();

    thrown.expect(UniformInterfaceException.class);
    thrown.expectMessage(String.format("Capability with id '%s' was not found", created.id()));
    read.save();
  }

  @Test
  public void updateInexistentTypedB() {
    final CapabilityB created = capabilities().create(CapabilityB.class)
View Full Code Here

Examples of org.sonatype.nexus.testsuite.capabilities.client.CapabilityB.save()

    final CapabilityB read = capabilities().get(CapabilityB.class, created.id());
    created.remove();

    thrown.expect(UniformInterfaceException.class);
    thrown.expectMessage(String.format("Capability with id '%s' was not found", created.id()));
    read.save();
  }

  @Test
  public void deleteInexistentTypedA() {
    final CapabilityA created = capabilities().create(CapabilityA.class)
View Full Code Here

Examples of org.spout.cereal.config.annotated.AnnotatedObjectConfiguration.save()

        new AnnotatedObjectConfiguration(config);
    for (Entry<String, VanillaBiome> entry : BY_NAME.entrySet()) {
      biomes.add(entry.getValue(), entry.getKey());
    }
    try {
      biomes.save();
    } catch (ConfigurationException ex) {
      ex.printStackTrace();
    }
  }
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.