demo.org.powermock.examples.tutorial.staticmocking.impl
Class IdGenerator

java.lang.Object
  extended by demo.org.powermock.examples.tutorial.staticmocking.impl.IdGenerator

public class IdGenerator
extends Object

The purpose of the IdGenerator is to generate ID's based on the system time.


Constructor Summary
IdGenerator()
           
 
Method Summary
static long generateNewId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdGenerator

public IdGenerator()
Method Detail

generateNewId

public static long generateNewId()
Returns:
A new ID based on the current time.


Copyright © 2007-2012. All Rights Reserved.