Examples of RepositoryMessageUtil


Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  @Test
  public void synchShadowTest()
      throws Exception
  {
    // create shadow repo 'nexus-shadow-repo'
    RepositoryMessageUtil repoUtil = new RepositoryMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);
    String shadowRepoId = "nexus-shadow-repo";
    String taskName = "synchShadowTest";

    RepositoryShadowResource repo = new RepositoryShadowResource();
    repo.setId(shadowRepoId);
    repo.setProvider("m2-m1-shadow");
    // format is neglected by server from now on, provider is the new guy in the town
    repo.setFormat("maven1");
    repo.setName(shadowRepoId);
    repo.setRepoType("virtual");
    repo.setShadowOf(this.getTestRepositoryId());
    repo.setSyncAtStartup(false);
    repo.setExposed(true);
    repoUtil.createRepository(repo);

    // create Sync Repo Task
    // repo: 'nexus-shadow-repo'
    // recurrence: 'manual'
    // run it manually
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  {
    super();

    this.localStorageDir = TestProperties.getString("proxy.repo.base.dir");
    this.proxyPort = TestProperties.getInteger("proxy.server.port");
    this.repositoryMessageUtil = new RepositoryMessageUtil(getXMLXStream(), MediaType.APPLICATION_XML);
  }
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  @Before
  public void init()
      throws ComponentLookupException
  {
    this.repoUtil = new RepositoryMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);
  }
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  @Before
  public void init()
      throws ComponentLookupException
  {
    this.repoUtil = new RepositoryMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);
  }
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  @Before
  public void init()
      throws ComponentLookupException
  {
    this.repoUtil = new RepositoryMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);
  }
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  @Test //( dependsOnMethods = { "bootEventTest" } )
  public void updateRepoTest()
      throws Exception
  {
    // change the name of the test repo
    RepositoryMessageUtil repoUtil =
        new RepositoryMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);

    RepositoryBaseResource repo = repoUtil.getRepository(this.getTestRepositoryId());
    String oldName = repo.getName();
    String newName = repo.getName() + "-new";
    repo.setName(newName);
    repoUtil.updateRepo(repo);

    TaskScheduleUtil.waitForAllTasksToStop();
    getEventInspectorsUtil().waitForCalmPeriod();

    final SyndFeed feed = FeedUtil.getFeed("systemChanges");
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

  @Test //( dependsOnMethods = { "updateRepoTest" } )
  public void changeProxyStatusTest()
      throws Exception
  {
    // change the name of the test repo
    RepositoryMessageUtil repoUtil =
        new RepositoryMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);

    RepositoryStatusResource repo = repoUtil.getStatus("release-proxy-repo-1");
    repo.setProxyMode(ProxyMode.BLOCKED_AUTO.name());
    repoUtil.updateStatus(repo);

    TaskScheduleUtil.waitForAllTasksToStop();
    getEventInspectorsUtil().waitForCalmPeriod();

    SyndFeed systemFeed = FeedUtil.getFeed("systemChanges");
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RepositoryMessageUtil

    @SuppressWarnings( "unchecked" )
    @Test
    public void download()
        throws Exception
    {
        RepositoryMessageUtil repoUtil =
            new RepositoryMessageUtil( this, XStreamFactory.getXmlXStream(), MediaType.APPLICATION_XML );
        GroupMessageUtil groupUtil =
            new GroupMessageUtil( this, XStreamFactory.getXmlXStream(), MediaType.APPLICATION_XML );

        RepositoryBaseResource flexmojos = repoUtil.getRepository( "flexmojos" );
        assertNotNull( flexmojos );

        RepositoryGroupResource publicGroup = groupUtil.getGroup( "public" );
        assertNotNull( publicGroup );
        Matcher<?> matcher =
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.