summaryrefslogtreecommitdiffstats
path: root/tests/testsuite/java.rs
blob: 9cced9d08c7dc9994f1b53509e0a24d953e275f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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(())
//}