1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-05 04:47:58 +00:00
starship/tests/testsuite/java.rs
Kuba Clark 71f03ec3e9 feat: Add Java Module (#314)
Implements a Java module which shows basic Java information when inside a Java project.
2019-09-19 18:02:53 -05:00

27 lines
716 B
Rust

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(())
//}