Class ExpectedLogMethodTestRule

java.lang.Object
com.liferay.portal.kernel.test.rule.AbstractTestRule<Void,M>
com.liferay.portal.kernel.test.rule.MethodTestRule<Void>
com.liferay.portal.search.test.rule.logging.ExpectedLogMethodTestRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class ExpectedLogMethodTestRule extends com.liferay.portal.kernel.test.rule.MethodTestRule<Void>
  • Field Details

  • Constructor Details

    • ExpectedLogMethodTestRule

      public ExpectedLogMethodTestRule()
  • Method Details

    • verify

      public void verify()
    • afterMethod

      protected void afterMethod(org.junit.runner.Description description, Void unused, Object target)
      Specified by:
      afterMethod in class com.liferay.portal.kernel.test.rule.AbstractTestRule<Void,Void>
    • beforeMethod

      protected Void beforeMethod(org.junit.runner.Description description, Object target)
      Specified by:
      beforeMethod in class com.liferay.portal.kernel.test.rule.AbstractTestRule<Void,Void>
    • closeCaptureHandler

      protected void closeCaptureHandler()
    • getlogEntries

      protected List<com.liferay.portal.test.log.LogEntry> getlogEntries()
    • getLogRecords

      @Deprecated protected List<LogRecord> getLogRecords()
      Deprecated.
      As of Cavanaugh (7.4.x), with no direct replacement
    • openCaptureHandler

      protected void openCaptureHandler(String name, Level level)