tigase.test.util
Class TestUtil

java.lang.Object
  extended by tigase.test.util.TestUtil

public class TestUtil
extends Object

Describe class TestUtil here. Created: Sat May 28 08:15:38 2005

Version:
$Rev: 229 $
Author:
Artur Hefczyc

Method Summary
static void addActiveConnection(Socket conn)
           
static void addDaemonJID(String jid, Socket sock)
           
static void debug(Exception exc, boolean deb)
           
static void debug(String msg, boolean deb)
           
static void displayStats(String user_name, long tests_ok, long tests_er, long total_time, long total_successful)
           
static LinkedList<TestIfc> getDependsTree(String[] test_ns, Params params)
           
static String getRandomJID()
           
static String getSeqJID()
           
static Set<TestIfc> getTests()
           
static boolean removeDaemonJID(String jid)
           
static void shutdownAllDaemons()
           
static String stack2String(Exception exc)
           
static String toStringArrayNS(String[] arr, String delim)
           
static String toStringCollNS(Collection<TestIfc> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addActiveConnection

public static void addActiveConnection(Socket conn)

addDaemonJID

public static void addDaemonJID(String jid,
                                Socket sock)

shutdownAllDaemons

public static void shutdownAllDaemons()

removeDaemonJID

public static boolean removeDaemonJID(String jid)

getRandomJID

public static String getRandomJID()

getSeqJID

public static String getSeqJID()

getTests

public static Set<TestIfc> getTests()
                             throws Exception
Throws:
Exception

getDependsTree

public static LinkedList<TestIfc> getDependsTree(String[] test_ns,
                                                 Params params)
                                          throws Exception
Throws:
Exception

toStringArrayNS

public static String toStringArrayNS(String[] arr,
                                     String delim)

toStringCollNS

public static String toStringCollNS(Collection<TestIfc> list)

debug

public static void debug(String msg,
                         boolean deb)

debug

public static void debug(Exception exc,
                         boolean deb)

stack2String

public static String stack2String(Exception exc)

displayStats

public static void displayStats(String user_name,
                                long tests_ok,
                                long tests_er,
                                long total_time,
                                long total_successful)


Copyright © 2005-2012 Tigase. All Rights Reserved.