Cannot execute the JUnit class, which is trying to compare XML input with XML output.
TestCase.assertEquals(msg, expected, actual);
Is there a way to compare XML i / p and o / p with JUnit?
You can look at XMLUnit . This allows you to compare two XML documents. From the docs:
XMLUnit allows you to approve JUnit style statements regarding the content and structure of XML. This is an open source project organized at http://xmlunit.sourceforge.net/ , which has grown because of the need to test the system that generated and received custom XML messages. The problem we are faced with is how to verify that the system generated the correct message from a known set of inputs. Obviously, we could use DTD or schemas to check the output of the message, but this approach will not allow us to distinguish between valid XML with the correct content (for example, an element string) and valid XML with the wrong content (for example, a baz element). What we really wanted was the assertXMLEqual () method, so we could compare the message that we expected to generate with the message that the system actually generated.
Source: https://habr.com/ru/post/900912/More articles:NHibernate Validator throws a System.NotSupportedException after upgrading to 3.1 - nhibernateThe source field for the collection is null when using LinFu ProxyFactoryFactory in NHibernate - nhibernatehttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/900909/designing-repositories-for-di-constructor-injection-for-service-layer&usg=ALkJrhiqSizxdqwH3wl3aZlbNNjLvo5g8Amigs (MasterCard Virtual Payment Client) php integration - phpUpload data to database from Android app via web service - jsonIs it possible to record video while another video plays in the upper most layers? - iosHow do you get properties, operators and values ββfrom the Expression predicate >? - reflectionAndroid bluetooth: list of paired devices - androidJQuery collation selector ("id" vs. "class")? - jquery-uiHow to get the Netflix OAuth API to use my callback? - ruby-on-rails-3All Articles