aboutsummaryrefslogtreecommitdiffstats
path: root/integration/intellij/src/test
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-02-14 15:59:37 +0100
committerJon Bratseth <bratseth@gmail.com>2022-02-14 15:59:37 +0100
commitf674beef57673690b863927ca5289d75a6777c28 (patch)
tree83243d308ecdd4798ccab4955224729fdbf3e13b /integration/intellij/src/test
parent7b29f4b48d616b66727226781281c6eb4336d99a (diff)
Test function resolution
Diffstat (limited to 'integration/intellij/src/test')
-rw-r--r--integration/intellij/src/test/java/ai/vespa/intellij/model/SchemaTest.java4
1 files changed, 4 insertions, 0 deletions
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());
}
}