Search code examples
javajunit4

Where is the org.junit.contrib.java.lang.system.StandardOutputStreamLog?


Where is this class? My project use the JUnit 4.12, and not found the StandardOutputStreamLog. Is it be removed at this release? or it come from the other lib? and what is the relation between these tow?


Solution

  • This class is deprecated and you should use SystemOutRule.

    Check the source

    StandardOutputStreamLog()

    Deprecated.

    Please use new SystemOutRule().enableLog().

    Creates a rule that records writes while they are still written to the standard output stream.