@Test public void invalid() throws Throwable { Assume.assumeThat(isValid, CoreMatchers.is(false)); advice.cacheUpdateSingle(pjp, returnValue); verify(cache, never()).set(anyString(), anyInt(), any(), any(SerializationType.class)); }
@AfterReturning(pointcut = "updateSingle()", returning = "retVal") public void cacheUpdateSingle(final JoinPoint jp, final Object retVal) throws Throwable { update(jp, retVal); }
UpdateSingleCacheAdvice extends SingleUpdateCacheAdvice<UpdateSingleCache> { @AfterReturning(pointcut = "updateSingle()", returning = "retVal") public void cacheUpdateSingle(final JoinPoint jp, final Object retVal) throws Throwable { update(jp, retVal); } }
UpdateSingleCacheAdvice extends SingleUpdateCacheAdvice<UpdateSingleCache> { @AfterReturning(pointcut = "updateSingle()", returning = "retVal") public void cacheUpdateSingle(final JoinPoint jp, final Object retVal) throws Throwable { update(jp, retVal); } UpdateSingleCacheAdvice(); }
UpdateSingleCacheAdvice extends SingleUpdateCacheAdvice<UpdateSingleCache> { @AfterReturning(pointcut = "updateSingle()", returning = "retVal") public void cacheUpdateSingle(final JoinPoint jp, final Object retVal) throws Throwable { update(jp, retVal); } UpdateSingleCacheAdvice(); @Pointcut("@annotation(com.google.code.ssm.api.UpdateSingleCache)") void updateSingle(); @AfterReturning(pointcut = "updateSingle()", returning = "retVal") void cacheUpdateSingle(final JoinPoint jp, final Object retVal); }
UpdateSingleCacheAdvice extends SingleUpdateCacheAdvice<UpdateSingleCache> { @AfterReturning(pointcut = "updateSingle()", returning = "retVal") public void cacheUpdateSingle(final JoinPoint jp, final Object retVal) throws Throwable { update(jp, retVal); } UpdateSingleCacheAdvice(); @Pointcut("@annotation(com.google.code.ssm.api.UpdateSingleCache)") void updateSingle(); @AfterReturning(pointcut = "updateSingle()", returning = "retVal") void cacheUpdateSingle(final JoinPoint jp, final Object retVal);  }