Code example for ListIterator

Methods: next

0
	public void next() { 
		logger.debug("Begin: next()...");
		ListIterator<Object> itr = new EmptyListIterator<Object>();
		boolean result = false;
		try{ 
			itr.next();
		}catch(UnsupportedOperationException e){
			result = true;
			logger.debug("End: result = " + result);
		} 
		assert result;
	} 
 
	/** 
	 * allocate expensive external resources(like logging into a database) before any of the test methods in the class. 
	 */ 
	@BeforeClass 
	public static void init() { 
		logger.debug("Begin: init()...");
		logger.debug("End: init()!");
	}