Examples of StorageCollectionItem


Examples of org.sonatype.nexus.proxy.item.StorageCollectionItem

    // pom + jar + sha1 for both, but sources jar and associated sha1 should be left alone
    assertThat(releaseRemovalResult.getDeletedFileCount(), is(4));
    assertThat(releaseRemovalResult.isSuccessful(), is(true));
    StorageItem item = releases.retrieveItem(new ResourceStoreRequest("org/sonatype/test/1.0"));
    assertThat(item, notNullValue());
    StorageCollectionItem coll = (StorageCollectionItem) item;
    Collection<StorageItem> storageItems = releases.list(false, coll);
    assertThat(storageItems, hasSize(2));
    for (StorageItem storageItem : storageItems) {
      assertThat(storageItem.getName(), containsString("sources"));
    }
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.