-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
Description
I have the following java test:
@Test
void checksThatWeCanCompileTheProgramWithProxySet(@Mktmp final Path tmp) throws Exception {
new Farea(tmp).together(
f -> {
f.clean();
final Requisite settings = f.files().file("settings.xml").write(
ProxyIT.settings(this.port).getBytes(StandardCharsets.UTF_8)
);
f.files()
.file("src/main/eo/foo/x/y/main.eo")
.write(ProxyIT.program().getBytes(StandardCharsets.UTF_8));
new AppendedPlugin(f).value()
.goals("register", "assemble", "resolve", "place");
f.withOpt("-s");
f.withOpt(settings.path().toString());
f.exec("package");
MatcherAssert.assertThat(
"We expect the build is successful when a proxy is set",
f.log().content(),
Matchers.containsString("BUILD SUCCESS")
);
}
);
}qulice complaints with the following error:
[INFO] PMD: src/test/java/org/eolang/maven/ProxyIT.java[93-93]: This unit test should include assert() or fail() (UnitTestShouldIncludeAssert)
Expected behaviour:
qulice should find MatcherAssert.assertThat assertion inside of the lambda expression.
Reactions are currently unavailable