Introduce new utility method XMLUtils#documentFromResource()

Moved the method XMLDiff#getAsDocument() from the testutil
bundle to XMLUtils in o.e.skalli.api and made it slightly more
generic. This method allows to load resources files from the
bundle containg a given class.

Change-Id: I2dd44e3e09d89f812a8a687a2f1330e622f0d4f4
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>
Tests in core.test should not change the test projects

ProjectConverterTest changes the lastModified timestamp of the
test projects read from the testutil bundle, which may break
downstream tests.

Added concrete lastModified timestamps to both test projects
and removed the problematic code from ProjectConverterTest.

Change-Id: If6569e8dd33cbca137f8e3a77c5c78f19e9473aa
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>
CommonProjectConverterTest should not load test projects

The test projects are never used in any of the tests, so there is
no need to load them.

Change-Id: I81bdbdaee07bde10f5ae2fea76dfa94e3b5a609b
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>
Improved ambigious parameter name of XMLDiffUtil#assertEquals()

"docLeft" and "docRight" were not really self explaining. Now the
parameters are named "expected" and "actual", and the log message
has been improved, too.

Change-Id: I118287d2c023e3a7e73653c1a3c49400f29ebf89
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>
Employ XMLDiffUtil to test output of REST API

This patch adds files containing the expected results of the tests
as bundle resources and employs the XMLDiffUtil to compare the
actual output of the REST API with these files (after replacing
a placeholder for the port, which may vary from test to test).

Since all the tests basically do the same now the common parts of
the tests have been extracted to a helper method.

Change-Id: I8eb83b610b4043019fa40233495c1cddc826a3ce
Signed-off-by: Michael Ochmann <michael.ochmann@sap.com>