test_class.declarator: NS = "TEST-NS"
test_class.modifier: private static final
test_class.original_string: private static final String NS = "TEST-NS";
test_class.type: String
test_class.var_name: NS
test_class.declarator: EXPIRATION = 220
test_class.modifier: private static final
test_class.original_string: private static final int EXPIRATION = 220;
test_class.type: int
test_class.var_name: EXPIRATION
test_class.declarator: expectedValue
test_class.modifier: private final
test_class.original_string: private final Object expectedValue;
test_class.type: Object
test_class.var_name: expectedValue
test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/aop/ReadThroughAssignCacheAdviceTest.java
test_class.identifier: ReadThroughAssignCacheAdviceTest
test_class.superclass: extends AbstractCacheTest<ReadThroughAssignCacheAdvice>
test_case.body: @Test
      public void validCacheHit() throws Throwable {
          Assume.assumeTrue(isValid);
  
          when(cache.get(eq(cacheKey), any(SerializationType.class))).thenReturn(expectedValue);
  
          assertEquals(expectedValue, advice.cacheSingleAssign(pjp));
  
          verify(cache).get(eq(cacheKey), any(SerializationType.class));
          verify(cache, never()).set(anyString(), anyInt(), any(), any(SerializationType.class));
          verify(pjp, never()).proceed();
      }
test_case.class_method_signature: ReadThroughAssignCacheAdviceTest.validCacheHit()
test_case.full_signature: @Test public void validCacheHit()
test_case.identifier: validCacheHit
test_case.invocations: assumeTrue thenReturn when get eq any assertEquals cacheSingleAssign get verify eq any set verify never anyString anyInt any any proceed verify never
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validCacheHit()
focal_class.declarator: LOG = LoggerFactory.getLogger(ReadThroughAssignCacheAdvice.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(ReadThroughAssignCacheAdvice.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/aop/ReadThroughAssignCacheAdvice.java
focal_class.identifier: ReadThroughAssignCacheAdvice
focal_class.class_method_signature: ReadThroughAssignCacheAdvice.ReadThroughAssignCacheAdvice()
focal_class.full_signature: public  ReadThroughAssignCacheAdvice()
focal_class.identifier: ReadThroughAssignCacheAdvice
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ReadThroughAssignCacheAdvice()
focal_class.class_method_signature: ReadThroughAssignCacheAdvice.getSingleAssign()
focal_class.full_signature: @Pointcut("@annotation(com.google.code.ssm.api.ReadThroughAssignCache)") public void getSingleAssign()
focal_class.identifier: getSingleAssign
focal_class.modifiers: @Pointcut("@annotation(com.google.code.ssm.api.ReadThroughAssignCache)") public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void getSingleAssign()
focal_class.class_method_signature: ReadThroughAssignCacheAdvice.cacheSingleAssign(final ProceedingJoinPoint pjp)
focal_class.full_signature: @Around("getSingleAssign()") public Object cacheSingleAssign(final ProceedingJoinPoint pjp)
focal_class.identifier: cacheSingleAssign
focal_class.modifiers: @Around("getSingleAssign()") public
focal_class.parameters: (final ProceedingJoinPoint pjp)
focal_class.return: Object
focal_class.signature: Object cacheSingleAssign(final ProceedingJoinPoint pjp)
focal_class.class_method_signature: ReadThroughAssignCacheAdvice.getCacheKey(final AnnotationData data, final Object[] args, final String methodDesc)
focal_class.full_signature: @Override protected String getCacheKey(final AnnotationData data, final Object[] args, final String methodDesc)
focal_class.identifier: getCacheKey
focal_class.modifiers: @Override protected
focal_class.parameters: (final AnnotationData data, final Object[] args, final String methodDesc)
focal_class.return: String
focal_class.signature: String getCacheKey(final AnnotationData data, final Object[] args, final String methodDesc)
focal_class.class_method_signature: ReadThroughAssignCacheAdvice.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 SingleReadCacheAdvice<ReadThroughAssignCache>
focal_method.body: @Around("getSingleAssign()")
      public Object cacheSingleAssign(final ProceedingJoinPoint pjp) throws Throwable {
          return cache(pjp);
      }
focal_method.class_method_signature: ReadThroughAssignCacheAdvice.cacheSingleAssign(final ProceedingJoinPoint pjp)
focal_method.full_signature: @Around("getSingleAssign()") public Object cacheSingleAssign(final ProceedingJoinPoint pjp)
focal_method.identifier: cacheSingleAssign
focal_method.invocations: cache
focal_method.modifiers: @Around("getSingleAssign()") public
focal_method.parameters: (final ProceedingJoinPoint pjp)
focal_method.return: Object
focal_method.signature: Object cacheSingleAssign(final ProceedingJoinPoint pjp)