@Test public void testInvoke_not_occur_exception() throws Throwable { testTarget.invoke(mockMethodInvocation); verify(mockMethodInvocation, times(1)).proceed(); verify(mockExceptionLogger, never()).warn((Exception) any()); }
@Override public Object invoke( MethodInvocation invocation) throws Throwable, ResultMessagesNotificationException { if (startingPoint.get() == null) { startingPoint.set(invocation); } try { return invocation.proceed(); } catch (ResultMessagesNotificationException e) { if (isStartingPoint(invocation)) { logResultMessagesNotificationException(e); } throw e; } finally { if (isStartingPoint(invocation)) { startingPoint.remove(); } } }
ResultMessagesLoggingInterceptor implements MethodInterceptor,
                                              InitializingBean { @Override public Object invoke( MethodInvocation invocation) throws Throwable, ResultMessagesNotificationException { if (startingPoint.get() == null) { startingPoint.set(invocation); } try { return invocation.proceed(); } catch (ResultMessagesNotificationException e) { if (isStartingPoint(invocation)) { logResultMessagesNotificationException(e); } throw e; } finally { if (isStartingPoint(invocation)) { startingPoint.remove(); } } } }
ResultMessagesLoggingInterceptor implements MethodInterceptor,
                                              InitializingBean { @Override public Object invoke( MethodInvocation invocation) throws Throwable, ResultMessagesNotificationException { if (startingPoint.get() == null) { startingPoint.set(invocation); } try { return invocation.proceed(); } catch (ResultMessagesNotificationException e) { if (isStartingPoint(invocation)) { logResultMessagesNotificationException(e); } throw e; } finally { if (isStartingPoint(invocation)) { startingPoint.remove(); } } }  }
ResultMessagesLoggingInterceptor implements MethodInterceptor,
                                              InitializingBean { @Override public Object invoke( MethodInvocation invocation) throws Throwable, ResultMessagesNotificationException { if (startingPoint.get() == null) { startingPoint.set(invocation); } try { return invocation.proceed(); } catch (ResultMessagesNotificationException e) { if (isStartingPoint(invocation)) { logResultMessagesNotificationException(e); } throw e; } finally { if (isStartingPoint(invocation)) { startingPoint.remove(); } } }  void setExceptionLogger(ExceptionLogger exceptionLogger); @Override Object invoke(
            MethodInvocation invocation); @Override void afterPropertiesSet(); }
ResultMessagesLoggingInterceptor implements MethodInterceptor,
                                              InitializingBean { @Override public Object invoke( MethodInvocation invocation) throws Throwable, ResultMessagesNotificationException { if (startingPoint.get() == null) { startingPoint.set(invocation); } try { return invocation.proceed(); } catch (ResultMessagesNotificationException e) { if (isStartingPoint(invocation)) { logResultMessagesNotificationException(e); } throw e; } finally { if (isStartingPoint(invocation)) { startingPoint.remove(); } } }  void setExceptionLogger(ExceptionLogger exceptionLogger); @Override Object invoke(
            MethodInvocation invocation); @Override void afterPropertiesSet();  }