|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.tests.TestTools
public final class TestTools
Utilities for testing.
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 |
---|
public TestTools()
Method Detail |
---|
public static void printTimer()
public static String getMemoryUsage()
public static String printMem(long value)
@Deprecated public static void saveXml(XMLAccess xmlAccess, DocumentView docView, String name) throws FileNotFoundException, IOException, SAXException
xmlAccess
- docView
- name
-
FileNotFoundException
IOException
SAXException
public static void saveXml(Document doc, String name) throws FileNotFoundException, IOException, SAXException
doc
- name
-
FileNotFoundException
IOException
SAXException
public static void printDom(Node node, int step)
node
- node to printstep
- how many spaces to add at lower levelspublic static void printDom(Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |