You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to have LoggerMocker class, which can catch all logging messages and enable assertions on them.
Something like this:
@TestpublicvoidtestSomeCode() {
finalLoggerMockerlog = newLoggerMocker().mock();
// some codelog.expect(MyClass.class)
.info("works fine at this moment")
.expect(SomeOtherClass.class)
.error("some defect")
.show();
}
The text was updated successfully, but these errors were encountered:
Would be nice to have
LoggerMocker
class, which can catch all logging messages and enable assertions on them.Something like this:
The text was updated successfully, but these errors were encountered: