summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-03-25 15:47:25 (EDT)
committer sefftinge2009-03-25 15:47:25 (EDT)
commit4001dad8f9be884228242c6edcda2c03526604a3 (patch)
treeff181134a0dae5c7f93ba6b8d63822b465b8e489
parent9e2f86397b5ade85df9141ac69c9024ae5079d2f (diff)
downloadorg.eclipse.xtext-4001dad8f9be884228242c6edcda2c03526604a3.zip
org.eclipse.xtext-4001dad8f9be884228242c6edcda2c03526604a3.tar.gz
org.eclipse.xtext-4001dad8f9be884228242c6edcda2c03526604a3.tar.bz2
Fix broken test
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/XtextValidationTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/XtextValidationTest.java b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/XtextValidationTest.java
index d7b0ad6..8986fba 100644
--- a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/XtextValidationTest.java
+++ b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/XtextValidationTest.java
@@ -53,7 +53,8 @@ public class XtextValidationTest extends AbstractGeneratorTest {
Diagnostic child = diag.getChildren().get(0);
assertNotNull("child", child);
assertEquals("child.isWarning", child.getSeverity(), Diagnostic.WARNING);
- assertNull("child.children", child.getChildren());
+ assertNotNull("child.children", child.getChildren());
+ assertTrue("child.children.isEmpty", child.getChildren().isEmpty());
assertEquals("child.data[0]", reference, child.getData().get(0));
assertEquals("child.data[1]", XtextPackage.CROSS_REFERENCE__TERMINAL, child.getData().get(1));
assertEquals(child.getData().toString(), 2, child.getData().size());