@Test public void testCreateTransactionTokenInfo01() throws Exception { HandlerMethod handlerMethod = new HandlerMethod(new TransactionTokenSampleController(), TransactionTokenSampleController.class .getDeclaredMethod("fourth", SampleForm.class, Model.class)); TransactionTokenInfo tokenInfo = store.createTransactionTokenInfo( handlerMethod); assertThat(tokenInfo, is(notNullValue())); }
TransactionTokenInfo createTransactionTokenInfo( final HandlerMethod handlerMethod) { TransactionTokenCheck methodAnnotation = handlerMethod .getMethodAnnotation(TransactionTokenCheck.class); TransactionTokenCheck classAnnotation = AnnotationUtils.findAnnotation( handlerMethod.getBeanType(), TransactionTokenCheck.class); if (methodAnnotation == null) { return new TransactionTokenInfo(null, TransactionTokenType.NONE); } String tokenName = createTokenName(classAnnotation, methodAnnotation); return new TransactionTokenInfo(tokenName, methodAnnotation.type()); }
TransactionTokenInfoStore { TransactionTokenInfo createTransactionTokenInfo( final HandlerMethod handlerMethod) { TransactionTokenCheck methodAnnotation = handlerMethod .getMethodAnnotation(TransactionTokenCheck.class); TransactionTokenCheck classAnnotation = AnnotationUtils.findAnnotation( handlerMethod.getBeanType(), TransactionTokenCheck.class); if (methodAnnotation == null) { return new TransactionTokenInfo(null, TransactionTokenType.NONE); } String tokenName = createTokenName(classAnnotation, methodAnnotation); return new TransactionTokenInfo(tokenName, methodAnnotation.type()); } }
TransactionTokenInfoStore { TransactionTokenInfo createTransactionTokenInfo( final HandlerMethod handlerMethod) { TransactionTokenCheck methodAnnotation = handlerMethod .getMethodAnnotation(TransactionTokenCheck.class); TransactionTokenCheck classAnnotation = AnnotationUtils.findAnnotation( handlerMethod.getBeanType(), TransactionTokenCheck.class); if (methodAnnotation == null) { return new TransactionTokenInfo(null, TransactionTokenType.NONE); } String tokenName = createTokenName(classAnnotation, methodAnnotation); return new TransactionTokenInfo(tokenName, methodAnnotation.type()); } TransactionTokenInfoStore(); }
TransactionTokenInfoStore { TransactionTokenInfo createTransactionTokenInfo( final HandlerMethod handlerMethod) { TransactionTokenCheck methodAnnotation = handlerMethod .getMethodAnnotation(TransactionTokenCheck.class); TransactionTokenCheck classAnnotation = AnnotationUtils.findAnnotation( handlerMethod.getBeanType(), TransactionTokenCheck.class); if (methodAnnotation == null) { return new TransactionTokenInfo(null, TransactionTokenType.NONE); } String tokenName = createTokenName(classAnnotation, methodAnnotation); return new TransactionTokenInfo(tokenName, methodAnnotation.type()); } TransactionTokenInfoStore(); TransactionTokenInfo getTransactionTokenInfo(
            final HandlerMethod handlerMethod); }
TransactionTokenInfoStore { TransactionTokenInfo createTransactionTokenInfo( final HandlerMethod handlerMethod) { TransactionTokenCheck methodAnnotation = handlerMethod .getMethodAnnotation(TransactionTokenCheck.class); TransactionTokenCheck classAnnotation = AnnotationUtils.findAnnotation( handlerMethod.getBeanType(), TransactionTokenCheck.class); if (methodAnnotation == null) { return new TransactionTokenInfo(null, TransactionTokenType.NONE); } String tokenName = createTokenName(classAnnotation, methodAnnotation); return new TransactionTokenInfo(tokenName, methodAnnotation.type()); } TransactionTokenInfoStore(); TransactionTokenInfo getTransactionTokenInfo(
            final HandlerMethod handlerMethod);  }