From f674beef57673690b863927ca5289d75a6777c28 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Mon, 14 Feb 2022 15:59:37 +0100 Subject: Test function resolution --- .../intellij/src/test/java/ai/vespa/intellij/model/SchemaTest.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'integration/intellij/src/test') diff --git a/integration/intellij/src/test/java/ai/vespa/intellij/model/SchemaTest.java b/integration/intellij/src/test/java/ai/vespa/intellij/model/SchemaTest.java index 3f58f7c2801..a3899c0e936 100644 --- a/integration/intellij/src/test/java/ai/vespa/intellij/model/SchemaTest.java +++ b/integration/intellij/src/test/java/ai/vespa/intellij/model/SchemaTest.java @@ -23,6 +23,7 @@ public class SchemaTest extends PluginTestBase { assertEquals(2, profile.inherited().size()); assertEquals("parent-profile1", profile.inherited().get("parent-profile1").name()); assertEquals("parent-profile2", profile.inherited().get("parent-profile2").name()); + assertEquals(0, schema.functions().size()); } @Test @@ -36,6 +37,7 @@ public class SchemaTest extends PluginTestBase { assertEquals(2, profile.inherited().size()); assertEquals("other_child_profile", profile.inherited().get("other_child_profile").name()); assertEquals("parent_profile", profile.inherited().get("parent_profile").name()); + assertEquals(0, schema.functions().size()); } @Test @@ -49,6 +51,8 @@ public class SchemaTest extends PluginTestBase { assertEquals(2, profile.inherited().size()); assertEquals("outside_schema1", profile.inherited().get("outside_schema1").name()); assertEquals("outside_schema2", profile.inherited().get("outside_schema2").name()); + schema.functions().entrySet().stream().forEach(e -> System.out.println(e)); + assertEquals(8, schema.functions().size()); } } -- cgit v1.2.3