@Test public void shouldLogAfterInit() throws Exception { loggingInit.init("tha modell"); assertThat( logger.afterInit, contains( CapturingLogger.AfterInitArgs.create( "tha modell", First.<String, Integer>first("tha modell")))); }
@Nonnull @Override public First<M, F> init(M model) { logger.beforeInit(model); First<M, F> result = safeInvokeInit(model); logger.afterInit(model, result); return result; }
LoggingInit implements Init<M, F> { @Nonnull @Override public First<M, F> init(M model) { logger.beforeInit(model); First<M, F> result = safeInvokeInit(model); logger.afterInit(model, result); return result; } }
LoggingInit implements Init<M, F> { @Nonnull @Override public First<M, F> init(M model) { logger.beforeInit(model); First<M, F> result = safeInvokeInit(model); logger.afterInit(model, result); return result; } LoggingInit(Init<M, F> actualInit, MobiusLoop.Logger<M, ?, F> logger); }
LoggingInit implements Init<M, F> { @Nonnull @Override public First<M, F> init(M model) { logger.beforeInit(model); First<M, F> result = safeInvokeInit(model); logger.afterInit(model, result); return result; } LoggingInit(Init<M, F> actualInit, MobiusLoop.Logger<M, ?, F> logger); @Nonnull @Override First<M, F> init(M model); }
LoggingInit implements Init<M, F> { @Nonnull @Override public First<M, F> init(M model) { logger.beforeInit(model); First<M, F> result = safeInvokeInit(model); logger.afterInit(model, result); return result; } LoggingInit(Init<M, F> actualInit, MobiusLoop.Logger<M, ?, F> logger); @Nonnull @Override First<M, F> init(M model);  }