Package org.tinyuml.model

Examples of org.tinyuml.model.IdGenerator.initialize()


  /**
   * Tests the generator methods after initialization.
   */
  public void testIdGeneratorAfterInitialize() {
    IdGenerator generator = new IdGenerator();
    generator.initialize(6);
    int id1 = generator.nextId();
    assertTrue(id1 >= 6);
    int id2 = generator.nextId();
    assertTrue(id2 > id1);   
  }
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.