Skip to content

Commit 412500c

Browse files
committed
Fix travis job
1 parent d5eba8c commit 412500c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

features/BrowseClasspath.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ Feature: Browse classpaths
1818
And I call "save-buffer"
1919
And I start lsp-java
2020
And The server status must become "LSP::Started"
21-
When I call "lsp-java-classpath-browse"
22-
Then I should see:
21+
When I call "lsp-java-classpath-browse" and see:
2322
"""
2423
org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER
2524
"""

features/step-definitions/lsp-java-steps.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,14 @@
121121
(funcall (intern command))
122122
(error (cl-assert (string= message (error-message-string err)) t (error-message-string err))))))
123123

124+
(When "^I call \"\\([^\"]+\\)\" and see:$"
125+
(lambda (command text callback)
126+
(lsp-java-steps-async-wait
127+
(lambda ()
128+
(save-window-excursion
129+
(funcall (intern command))
130+
(s-contains? text (buffer-string) t)))
131+
callback)))
132+
124133
(provide 'lsp-java-steps)
125134
;;; lsp-java-steps.el ends here

features/support/env.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
(require 'lsp-java)
3535
(setq lsp-java-workspace-dir (f-join lsp-java-test-root "workspace")
3636
lsp-java-pop-buffer-function 'pop-to-buffer
37+
lsp-print-io t
38+
lsp-inhibit-message nil
3739
lsp-java-workspace-cache-dir (f-join lsp-java-test-root "workspace-cache")
3840
lsp-java-server-install-dir (locate-user-emacs-file "eclipse.jdt.ls/server/")
3941
lsp-response-timeout 30)

0 commit comments

Comments
 (0)