I'm using XMLUnit to compare two XMLs. This works fine when i perform the test class manual as a jUnit test.
But now i want to call the tests i have from another class. I can perform the testMethod, but nothing happens
here an example for the class with the test:
public class Tests extends XMLTestCase{
public void testForEquality() throws Exception {
String myControlXML = "<msg><uuid>2376</uuid><uuuid>23767</uuuid></msg>";
String myTestXML = "<msg><uuid>2376</uuid><uuuid>23767</uuuid></msg>";
assertXMLEqual(myControlXML, myTestXML);
}
}
here what i have tried to call it from another class:
public class testExternalCall{
public static void main(String[] args) {
Tests compareTest= new Tests ();
compareTest.testForEquality();
}
}
Blue