Class LogRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class LogRule
    extends Object
    implements org.junit.rules.TestRule
    JUnit Rule which nicely separates @Test/s in the log.

    Usage (NB the use of @Rule instead of @ClassRule):

       public @Rule LogRule logRule = new LogRule();
    
       @Test ...
     
    Author:
    Michael Vorburger
    • Constructor Detail

      • LogRule

        public LogRule()
    • Method Detail

      • getMarker

        public static org.slf4j.Marker getMarker()
      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement statement,
                                                       org.junit.runner.Description description)
        Specified by:
        apply in interface org.junit.rules.TestRule