[Fix] Fixed wrong exception message when asserting *-Ref parameters

This commit is contained in:
Robert von Burg 2017-05-08 19:07:51 +02:00
parent eedc587bed
commit b302c3f19e
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class ElementMapHelpers {
String interpretation = refP.getInterpretation(); String interpretation = refP.getInterpretation();
if (!interpretation.equals(expectedInterpretation)) { if (!interpretation.equals(expectedInterpretation)) {
String msg = "{0} is not an expected element reference as its interpretation is {1} instead of {2}"; //$NON-NLS-1$ String msg = "{0} is not an expected element reference as its interpretation is {1} instead of {2}"; //$NON-NLS-1$
throw new StrolchException(MessageFormat.format(msg, refP.getLocator(), expectedInterpretation, throw new StrolchException(
interpretation)); MessageFormat.format(msg, refP.getLocator(), interpretation, expectedInterpretation));
} }
if (refP.getUom().equals(UOM_NONE)) { if (refP.getUom().equals(UOM_NONE)) {