test_class.declarator: cut
test_class.modifier: private static
test_class.original_string: private static DefaultKeyProvider cut;
test_class.type: DefaultKeyProvider
test_class.var_name: cut
test_class.file: simple-spring-memcached/src/test/java/com/google/code/ssm/aop/support/DefaultKeyProviderTest.java
test_class.identifier: DefaultKeyProviderTest
test_case.body: @Test
      public void testKeyMethodArgs() throws Exception {
          try {
              cut.getKeyMethod(new KeyObject01());
              fail("Expected exception.");
          } catch (InvalidAnnotationException ex) {
              assertTrue(ex.getMessage().indexOf("0 arguments") != -1);
              System.out.println(ex.getMessage());
          }
  
          try {
              cut.getKeyMethod(new KeyObject02());
              fail("Expected exception.");
          } catch (InvalidAnnotationException ex) {
              assertTrue(ex.getMessage().indexOf("String") != -1);
              System.out.println(ex.getMessage());
          }
  
          try {
              cut.getKeyMethod(new KeyObject03());
              fail("Expected exception.");
          } catch (InvalidAnnotationException ex) {
              assertTrue(ex.getMessage().indexOf("String") != -1);
              System.out.println(ex.getMessage());
          }
  
          try {
              cut.getKeyMethod(new KeyObject04());
              fail("Expected exception.");
          } catch (InvalidAnnotationException ex) {
              assertTrue(ex.getMessage().indexOf("only one method") != -1);
              System.out.println(ex.getMessage());
          }
  
          assertEquals("doIt", cut.getKeyMethod(new KeyObject05()).getName());
          assertEquals("toString", cut.getKeyMethod(new KeyObject06(null)).getName());
      }
test_case.class_method_signature: DefaultKeyProviderTest.testKeyMethodArgs()
test_case.full_signature: @Test public void testKeyMethodArgs()
test_case.identifier: testKeyMethodArgs
test_case.invocations: getKeyMethod fail assertTrue indexOf getMessage println getMessage getKeyMethod fail assertTrue indexOf getMessage println getMessage getKeyMethod fail assertTrue indexOf getMessage println getMessage getKeyMethod fail assertTrue indexOf getMessage println getMessage assertEquals getName getKeyMethod assertEquals getName getKeyMethod
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testKeyMethodArgs()
focal_class.declarator: methodStore = new CacheKeyMethodStoreImpl()
focal_class.modifier: private
focal_class.original_string: private CacheKeyMethodStore methodStore = new CacheKeyMethodStoreImpl();
focal_class.type: CacheKeyMethodStore
focal_class.var_name: methodStore
focal_class.file: simple-spring-memcached/src/main/java/com/google/code/ssm/aop/support/DefaultKeyProvider.java
focal_class.identifier: DefaultKeyProvider
focal_class.interfaces: implements KeyProvider
focal_class.class_method_signature: DefaultKeyProvider.setMethodStore(final CacheKeyMethodStore methodStore)
focal_class.full_signature: public void setMethodStore(final CacheKeyMethodStore methodStore)
focal_class.identifier: setMethodStore
focal_class.modifiers: public
focal_class.parameters: (final CacheKeyMethodStore methodStore)
focal_class.return: void
focal_class.signature: void setMethodStore(final CacheKeyMethodStore methodStore)
focal_class.class_method_signature: DefaultKeyProvider.getMethodStore()
focal_class.full_signature: public CacheKeyMethodStore getMethodStore()
focal_class.identifier: getMethodStore
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CacheKeyMethodStore
focal_class.signature: CacheKeyMethodStore getMethodStore()
focal_class.class_method_signature: DefaultKeyProvider.generateKey(final Object keyObject)
focal_class.full_signature: @Override public String generateKey(final Object keyObject)
focal_class.identifier: generateKey
focal_class.modifiers: @Override public
focal_class.parameters: (final Object keyObject)
focal_class.return: String
focal_class.signature: String generateKey(final Object keyObject)
focal_class.class_method_signature: DefaultKeyProvider.generateKeys(final Object[] keyObjects)
focal_class.full_signature: @Override public String[] generateKeys(final Object[] keyObjects)
focal_class.identifier: generateKeys
focal_class.modifiers: @Override public
focal_class.parameters: (final Object[] keyObjects)
focal_class.return: String[]
focal_class.signature: String[] generateKeys(final Object[] keyObjects)
focal_class.class_method_signature: DefaultKeyProvider.getKeyMethod(final Object keyObject)
focal_class.full_signature:  Method getKeyMethod(final Object keyObject)
focal_class.identifier: getKeyMethod
focal_class.parameters: (final Object keyObject)
focal_class.return: Method
focal_class.signature: Method getKeyMethod(final Object keyObject)
focal_class.class_method_signature: DefaultKeyProvider.generateObjectId(final Method keyMethod, final Object keyObject)
focal_class.full_signature:  String generateObjectId(final Method keyMethod, final Object keyObject)
focal_class.identifier: generateObjectId
focal_class.parameters: (final Method keyMethod, final Object keyObject)
focal_class.return: String
focal_class.signature: String generateObjectId(final Method keyMethod, final Object keyObject)
focal_method.body: Method getKeyMethod(final Object keyObject) throws NoSuchMethodException {
          return methodStore.getKeyMethod(keyObject.getClass());
      }
focal_method.class_method_signature: DefaultKeyProvider.getKeyMethod(final Object keyObject)
focal_method.full_signature:  Method getKeyMethod(final Object keyObject)
focal_method.identifier: getKeyMethod
focal_method.invocations: getKeyMethod getClass
focal_method.parameters: (final Object keyObject)
focal_method.return: Method
focal_method.signature: Method getKeyMethod(final Object keyObject)