All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
7 call ale#test#SetDirectory('/testplugin/test')
8 runtime ale_linters/java/javac.vim
9 let g:expected_wrapper = ''
11 let g:expected_wrapper = 'mvnw'
13 let g:expected_wrapper = 'mvnw.cmd'
19 unlet! g:expected_wrapper
21 call ale#test#RestoreDirectory()
22 call ale#linter#Reset()
24 Execute(Should use 'mvnw' in classpath command if available):
25 call ale#test#SetFilename('test-files/maven/maven-java-project/module1/src/main/java/dummy1.java')
29 \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1'),
30 \ ale#Escape(ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1/' . g:expected_wrapper))
31 \ . ' dependency:build-classpath',
33 \ ale#maven#BuildClasspathCommand(bufnr(''))
35 Execute(Should use 'mvn' in classpath command if it is executable and 'mvnw' is unavailable):
36 call ale#test#SetFilename('test-files/maven/maven-java-project/module2/src/main/java/dummy2.java')
37 let $PATH .= (has('win32') ? ';' : ':')
38 \ . ale#path#Simplify(g:dir . '/test-files/maven')
42 \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module2'),
44 \ . ' dependency:build-classpath',
46 \ ale#maven#BuildClasspathCommand(bufnr(''))
48 Execute(Should return empty string if maven cannot be executed):
49 call ale#test#SetFilename('test-files/maven/non-maven-project/src/main/java/dummy.java')
53 \ ale#maven#BuildClasspathCommand(bufnr(''))