[xbase][validation] Fixed location of error marker for invalid assignments

see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=398302

Change-Id: I5cca18ed95f52ad71e649da2eddb9a530aad7a66
This commit is contained in:
Sebastian Zarnekow 2014-12-29 16:37:44 +01:00
parent d797a9e26c
commit fdfe435236

View file

@ -161,7 +161,11 @@ public class ValidationTestHelper {
.append(code)
.append("' on ")
.append(objectType.getName())
.append(" but got\n");
.append(" at [")
.append(offset)
.append(":")
.append(length)
.append("] but got\n");
getIssuesAsString(model, allIssues, message);
assertEquals(Joiner.on('\n').join(messageParts), message.toString());
fail(message.toString());