test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/aop/counter/IncrementCounterInCacheAdviceTest.java
test_class.identifier: IncrementCounterInCacheAdviceTest
test_class.superclass: extends AbstractCounterTest<IncrementCounterInCacheAdvice>
test_case.body: @Test
      public void invalidIncrementCounterInCache() throws Throwable {
          Assume.assumeThat(isValid, CoreMatchers.is(false));
  
          advice.incrementSingle(pjp);
  
          verify(cache, never()).incr(cacheKey, 1, 1L);
      }
test_case.class_method_signature: IncrementCounterInCacheAdviceTest.invalidIncrementCounterInCache()
test_case.full_signature: @Test public void invalidIncrementCounterInCache()
test_case.identifier: invalidIncrementCounterInCache
test_case.invocations: assumeThat is incrementSingle incr verify never
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void invalidIncrementCounterInCache()
focal_class.declarator: LOG = LoggerFactory.getLogger(IncrementCounterInCacheAdvice.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(IncrementCounterInCacheAdvice.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/aop/counter/IncrementCounterInCacheAdvice.java
focal_class.identifier: IncrementCounterInCacheAdvice
focal_class.class_method_signature: IncrementCounterInCacheAdvice.incrementSingleCounter()
focal_class.full_signature: @Pointcut("@annotation(com.google.code.ssm.api.counter.IncrementCounterInCache)") public void incrementSingleCounter()
focal_class.identifier: incrementSingleCounter
focal_class.modifiers: @Pointcut("@annotation(com.google.code.ssm.api.counter.IncrementCounterInCache)") public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void incrementSingleCounter()
focal_class.class_method_signature: IncrementCounterInCacheAdvice.incrementSingle(final JoinPoint jp)
focal_class.full_signature: @AfterReturning("incrementSingleCounter()") public void incrementSingle(final JoinPoint jp)
focal_class.identifier: incrementSingle
focal_class.modifiers: @AfterReturning("incrementSingleCounter()") public
focal_class.parameters: (final JoinPoint jp)
focal_class.return: void
focal_class.signature: void incrementSingle(final JoinPoint jp)
focal_class.class_method_signature: IncrementCounterInCacheAdvice.getLogger()
focal_class.full_signature: @Override protected Logger getLogger()
focal_class.identifier: getLogger
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getLogger()
focal_class.superclass: extends CounterInCacheBase
focal_method.body: @AfterReturning("incrementSingleCounter()")
      public void incrementSingle(final JoinPoint jp) throws Throwable {
          if (isDisabled()) {
              getLogger().info("Cache disabled");
              return;
          }
  
          // This is injected caching. If anything goes wrong in the caching, LOG
          // the crap outta it, but do not let it surface up past the AOP injection itself.
          // It will be invoked only if underlying method completes successfully.
          String cacheKey = null;
          IncrementCounterInCache annotation;
          try {
              Method methodToCache = getCacheBase().getMethodToCache(jp, IncrementCounterInCache.class);
              annotation = methodToCache.getAnnotation(IncrementCounterInCache.class);
              AnnotationData data = AnnotationDataBuilder.buildAnnotationData(annotation, IncrementCounterInCache.class, methodToCache);
              cacheKey = getCacheBase().getCacheKeyBuilder().getCacheKey(data, jp.getArgs(), methodToCache.toString());
              getCacheBase().getCache(data).incr(cacheKey, 1, 1);
          } catch (Exception ex) {
              warn(ex, "Incrementing counter [%s] via %s aborted due to an error.", cacheKey, jp.toShortString());
          }
      }
focal_method.class_method_signature: IncrementCounterInCacheAdvice.incrementSingle(final JoinPoint jp)
focal_method.full_signature: @AfterReturning("incrementSingleCounter()") public void incrementSingle(final JoinPoint jp)
focal_method.identifier: incrementSingle
focal_method.invocations: isDisabled info getLogger getMethodToCache getCacheBase getAnnotation buildAnnotationData getCacheKey getCacheKeyBuilder getCacheBase getArgs toString incr getCache getCacheBase warn toShortString
focal_method.modifiers: @AfterReturning("incrementSingleCounter()") public
focal_method.parameters: (final JoinPoint jp)
focal_method.return: void
focal_method.signature: void incrementSingle(final JoinPoint jp)