From ec406b1cfa929a9c67ecde8b42e5f4339244a2e0 Mon Sep 17 00:00:00 2001 From: irengrig Date: Wed, 22 Aug 2012 18:37:46 +0400 Subject: [PATCH] schema inheritance test correction (now we parse file to the end.. no NPE inside => more usages found) --- .../intellij/xml/index/XmlSchemaTypeInheritanceTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xml/tests/src/com/intellij/xml/index/XmlSchemaTypeInheritanceTest.java b/xml/tests/src/com/intellij/xml/index/XmlSchemaTypeInheritanceTest.java index 9fcd35e0261f..dd9f13ed7f15 100644 --- a/xml/tests/src/com/intellij/xml/index/XmlSchemaTypeInheritanceTest.java +++ b/xml/tests/src/com/intellij/xml/index/XmlSchemaTypeInheritanceTest.java @@ -53,11 +53,12 @@ public class XmlSchemaTypeInheritanceTest extends CodeInsightFixtureTestCase { final Collection node = map.get(new SchemaTypeInfo("tConversationNode", true, ourNs)); Assert.assertNotNull(node); - Assert.assertEquals(2, node.size()); + Assert.assertEquals(3, node.size()); final Set expected = new HashSet(); expected.add(new SchemaTypeInfo("tConversation", true, ourNs)); expected.add(new SchemaTypeInfo("tCallConversation", true, ourNs)); + expected.add(new SchemaTypeInfo("tSubConversation", true, ourNs)); for (SchemaTypeInfo info : node) { expected.remove(info); } @@ -65,13 +66,13 @@ public class XmlSchemaTypeInheritanceTest extends CodeInsightFixtureTestCase { // final Collection stringNode = map.get(new SchemaTypeInfo("string", true, "http://www.w3.org/2001/XMLSchema")); Assert.assertNotNull(stringNode); - Assert.assertEquals(5, stringNode.size()); + Assert.assertEquals(9, stringNode.size()); Assert.assertTrue(stringNode.contains(new SchemaTypeInfo("tAdHocOrdering", true, ourNs))); Assert.assertTrue(stringNode.contains(new SchemaTypeInfo("tEventBasedGatewayType", true, ourNs))); // final Collection baseNode = map.get(new SchemaTypeInfo("tBaseElement", true, ourNs)); Assert.assertNotNull(baseNode); - Assert.assertEquals(17, baseNode.size()); + Assert.assertEquals(39, baseNode.size()); Assert.assertTrue(baseNode.contains(new SchemaTypeInfo("tAuditing", true, ourNs))); Assert.assertTrue(baseNode.contains(new SchemaTypeInfo("tDataInput", true, ourNs))); Assert.assertTrue(baseNode.contains(new SchemaTypeInfo("tDataOutput", true, ourNs)));