Fix compilation problem in bosh language server

This commit is contained in:
Kris De Volder
2019-02-12 14:34:51 -08:00
parent bc86170ae0
commit c3d5c19f0c
7 changed files with 71 additions and 9 deletions

View File

@@ -66,7 +66,6 @@ public class ConcourseEditorTest {
@Before public void setup() throws Exception {
serverInitializer.setMaxCompletions(100);
harness.intialize(null);
}
@Test public void addSingleRequiredPropertiesQuickfix() throws Exception {
@@ -3695,6 +3694,33 @@ public class ConcourseEditorTest {
);
}
@Test public void hiearhicalDocumentSymbolsInPipeline() throws Exception {
Editor editor = harness.newEditor(
"resource_types:\n" +
"- name: some-resource-type\n" +
"resources:\n" +
"- name: foo-resource\n" +
"- name: bar-resource\n" +
"jobs:\n" +
"- name: do-some-stuff\n" +
"- name: do-more-stuff\n" +
"groups:\n" +
"- name: group-one\n" +
"- name: group-two\n"
);
editor.assertDocumentSymbols(
"some-resource-type|ResourceType",
"foo-resource|Resource",
"bar-resource|Resource",
"do-some-stuff|Job",
"do-more-stuff|Job",
"group-one|Group",
"group-two|Group"
);
}
@Test public void reconcilerRaceCondition() throws Exception {
SynchronizationPoint reconcilerThreadStart = harness.reconcilerThreadStart();
Editor editor = harness.newEditor("garbage");