Assertion on logoutput either debug/info does not work. (original) (raw)
Describe the bug
The following does not correctly get the log output nor does give you back the output in any way.
assertThat(result).log().debug()
assertThat(result).log().info()
assertThat(result).log().debug().hasSize(1) does not work.
Currently we have no support for [WARNINGS] like:
assertThat(result).log().warn()....
Expected behavior
It should be possible to write lines like this:
assertThat(result).log().warn().hasSize(1).contains("Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!");assertThat(result).log().info().contains("Building Maven Integration Test :: it0033 1.0");assertThat(result).log().debug().contains("Populating class realm maven.api");
Everything .warn(),info() or debug() should result in ListAssert<> off AssertJ to make it flexible.