1 /* 2 * $Header: /cvsroot/jdbforms/dbforms/tests/test/org/dbforms/util/TestUniqueIDGenerator.java,v 1.6 2004/08/18 12:26:11 hkollmann Exp $ 3 * $Revision: 1.6 $ 4 * $Date: 2004/08/18 12:26:11 $ 5 * 6 * DbForms - a Rapid Application Development Framework 7 * Copyright (C) 2001 Joachim Peer <joepeer@excite.com> 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or (at your option) any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 24 package org.dbforms.util; 25 26 27 /*** 28 * Description of the Class 29 * 30 * @author epugh 31 * @created May 3, 2002 32 */ 33 public class TestUniqueIDGenerator extends AbstractTestCase { 34 /*** 35 * DOCUMENT ME! 36 * 37 * @throws Exception DOCUMENT ME! 38 */ 39 public void testGetUniqueID() throws Exception { 40 String id1 = UniqueIDGenerator.getUniqueID(); 41 assertTrue("Make sure we got a unique id.", id1 != null); 42 43 String id2 = UniqueIDGenerator.getUniqueID(); 44 assertTrue("Make sure both id's are different. id1:" + id1 + ", id2:" 45 + id2, !id1.equals(id2)); 46 } 47 }