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)
          Deprecated. use TransformUtils.serialize(javax.xml.transform.Source, javax.xml.transform.stream.StreamResult, String)
 
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(Document doc,
                                      String name)
                    throws FileNotFoundException,
                           IOException,
                           SAXException
Deprecated. use TransformUtils.serialize(javax.xml.transform.Source, javax.xml.transform.stream.StreamResult, String)

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.