refactor(env/java): improve tests and implementation (#1246)
authorRaphael von der Grün <raphinesse@gmail.com>
Wed, 23 Jun 2021 16:22:04 +0000 (18:22 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 16:22:04 +0000 (18:22 +0200)
commit0f13f4a5ac8e657aee9ee52f1aabf1c59ccdf3b9
tree220ff396bac28c4539c6cb2be47bdba3b44b2791
parent6d803e2f7236db32fc963150c1683e097f453867
refactor(env/java): improve tests and implementation (#1246)

This basically fixes up the changes from #1220.

* test(env/java): replace test that duplicates implementation
* test(env/java): stub _ensure to focus on unit under test
* test(env/java): add test for invalid output
* refactor(env/java): keep try block small
* refactor(env/java): shorten excessive comment
bin/templates/cordova/lib/env/java.js
spec/unit/check_reqs.spec.js
spec/unit/java.spec.js