diff options
author | Kuba Clark <jakub.clark@protonmail.com> | 2019-09-20 01:02:53 +0200 |
---|---|---|
committer | Kevin Song <chipbuster@users.noreply.github.com> | 2019-09-19 18:02:53 -0500 |
commit | 71f03ec3e948e7e8871657bcb19ea65aafea57e8 (patch) | |
tree | 84140d2268bc9550a24b8e05c5337e387a85f451 /tests/testsuite | |
parent | 3eb97bd48f8207f25a45a98de7e81b0e634df8bf (diff) |
feat: Add Java Module (#314)
Implements a Java module which shows basic Java information when inside a Java project.
Diffstat (limited to 'tests/testsuite')
-rw-r--r-- | tests/testsuite/java.rs | 26 | ||||
-rw-r--r-- | tests/testsuite/main.rs | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/testsuite/java.rs b/tests/testsuite/java.rs new file mode 100644 index 000000000..9cced9d08 --- /dev/null +++ b/tests/testsuite/java.rs @@ -0,0 +1,26 @@ +use std::fs::File; +use std::io; + +use ansi_term::Color; + +use crate::common; + +// When these tests run in the CI, they use Azul's Zulu Java distribution. +// The version format returned by this java package is irregular and not supported (yet). + +//#[test] +//#[ignore] +//fn folder_with_pom() -> io::Result<()> { +// let dir = common::new_tempdir()?; +// File::create(dir.path().join("pom.xml"))?; +// +// let output = common::render_module("java") +// .arg("--path") +// .arg(dir.path()) +// .output()?; +// let actual = String::from_utf8(output.stdout).unwrap(); +// +// let expected = format!("via {} ", Color::Red.dimmed().paint("☕ ")); +// assert_eq!(expected, actual); +// Ok(()) +//} diff --git a/tests/testsuite/main.rs b/tests/testsuite/main.rs index f92a702cf..d299ca610 100644 --- a/tests/testsuite/main.rs +++ b/tests/testsuite/main.rs @@ -8,6 +8,7 @@ mod git_state; mod git_status; mod golang; mod hostname; +mod java; mod jobs; mod line_break; mod modules; |