01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2003 Danet GmbH (www.danet.de), GS-AN.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: Util.java,v 1.2 2006/09/29 12:32:08 drmlipp Exp $
21: *
22: * $Log: Util.java,v $
23: * Revision 1.2 2006/09/29 12:32:08 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1.1.1 2003/12/19 13:01:46 drmlipp
27: * Updated to 1.1rc1
28: *
29: * Revision 1.1 2003/11/06 15:52:43 huaiyang
30: * Initial.
31: *
32: *
33: *
34: */
35:
36: package common;
37:
38: /**
39: * Describe class <code>Util</code> here.
40: *
41: * @author <a href="mailto:mao@danet.de">Huaiyang Mao</a>
42: * @version 1.0
43: */
44: public class Util {
45: static final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory
46: .getLog(Util.class);
47:
48: public static void logEntry(String method) {
49: logger.info("Testcase [" + method + " ] calling");
50: }
51:
52: public static void logExit(String method) {
53: logger.info("Testcase [" + method + " ] called");
54: }
55:
56: /** wait **/
57: public static void sleep(int time) {
58: logger.debug("Sleep " + time + " seconds beginns");
59: try {
60: Thread.sleep(time);
61: } catch (InterruptedException ie) {
62: System.out.println("Thread sleep interrupted");
63: }
64: logger.debug("Sleep " + time + " seconds ends");
65: }
66: }
|