Skip to content

Commit

Permalink
Fix travis job
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoncho committed Oct 21, 2018
1 parent d5eba8c commit 412500c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions features/BrowseClasspath.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ Feature: Browse classpaths
And I call "save-buffer"
And I start lsp-java
And The server status must become "LSP::Started"
When I call "lsp-java-classpath-browse"
Then I should see:
When I call "lsp-java-classpath-browse" and see:
"""
org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER
"""
9 changes: 9 additions & 0 deletions features/step-definitions/lsp-java-steps.el
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,14 @@
(funcall (intern command))
(error (cl-assert (string= message (error-message-string err)) t (error-message-string err))))))

(When "^I call \"\\([^\"]+\\)\" and see:$"
(lambda (command text callback)
(lsp-java-steps-async-wait
(lambda ()
(save-window-excursion
(funcall (intern command))
(s-contains? text (buffer-string) t)))
callback)))

(provide 'lsp-java-steps)
;;; lsp-java-steps.el ends here
2 changes: 2 additions & 0 deletions features/support/env.el
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
(require 'lsp-java)
(setq lsp-java-workspace-dir (f-join lsp-java-test-root "workspace")
lsp-java-pop-buffer-function 'pop-to-buffer
lsp-print-io t
lsp-inhibit-message nil
lsp-java-workspace-cache-dir (f-join lsp-java-test-root "workspace-cache")
lsp-java-server-install-dir (locate-user-emacs-file "eclipse.jdt.ls/server/")
lsp-response-timeout 30)
Expand Down

0 comments on commit 412500c

Please sign in to comment.