Examples of newID()


Examples of org.sonatype.nexus.component.services.id.EntityIdFactory.newId()

{
  @Test
  public void restoredIdsAreEqual() {
    final EntityIdFactory factory = new DefaultEntityIdFactory();

    final EntityId id = factory.newId();

    final EntityId restored = new EntityId(id.asUniqueString());

    assertThat(id, is(equalTo(restored)));
  }
View Full Code Here

Examples of org.sonatype.nexus.component.services.id.EntityIdFactory.newId()

    Set<EntityId> ids = Sets.newHashSet();

    final int NUMBER_OF_IDS = 100;

    for (int i = 0; i < NUMBER_OF_IDS; i++) {
      ids.add(factor.newId());
    }

    assertThat(ids.size(), is(equalTo(NUMBER_OF_IDS)));
  }
}
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.