java - IntelliJ Divides JUnit 4 Output Incorrectly -



java - IntelliJ Divides JUnit 4 Output Incorrectly -

i have test class written using junit 4 has multiple test methods. each of tests prints of import informational output. when in intellij's log, however, of lastly output previous test recorded beingness part of first.

why this? there way of correcting behaviour?

i'm writing system.out, , calling flush before returning each test made problem worse.

it bug. workaround thread#sleep in @after

https://youtrack.jetbrains.com/issue/idea-66683

test case:

public class logbug { @test public void see() { system.out.println("foo"); throw new assertionerror("bar"); } @test public void see2() { system.out.println("foo2"); throw new assertionerror("bar2"); } }

java intellij-idea junit

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -