sk.uniba.euromath.tests
Class TestTools

java.lang.Object
  extended by sk.uniba.euromath.tests.TestTools

public final class TestTools
extends Object

Utilities for testing.

Author:
Martin Vysny

Constructor Summary
TestTools()
           
 
Method Summary
static String getMemoryUsage()
           
static void printDom(Node node)
           
static void printDom(Node node, int step)
          Prints the node including its descendants
static String printMem(long value)
           
static void printTimer()
          Prints a timer value.
static void saveXml(Document doc, String name)
          Serializes given document.
static void saveXml(XMLAccess xmlAccess, DocumentView docView, String name)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestTools

public TestTools()
Method Detail

printTimer

public static void printTimer()
Prints a timer value.


getMemoryUsage

public static String getMemoryUsage()

printMem

public static String printMem(long value)

saveXml

@Deprecated
public static void saveXml(XMLAccess xmlAccess,
                                      DocumentView docView,
                                      String name)
                    throws FileNotFoundException,
                           IOException,
                           SAXException
Deprecated. 

Serializes transformed XML. It does nothing - GENE output cannot be simply stored.

Parameters:
xmlAccess -
docView -
name -
Throws:
FileNotFoundException
IOException
SAXException

saveXml

public static void saveXml(Document doc,
                           String name)
                    throws FileNotFoundException,
                           IOException,
                           SAXException
Serializes given document.

Parameters:
doc -
name -
Throws:
FileNotFoundException
IOException
SAXException

printDom

public static void printDom(Node node,
                            int step)
Prints the node including its descendants

Parameters:
node - node to print
step - how many spaces to add at lower levels

printDom

public static void printDom(Node node)


Copyright © 2003-2006 null. All Rights Reserved.