TransactionTokenContextHandlerMethodArgumentResolver implements
                                                                  HandlerMethodArgumentResolver { @Override public boolean supportsParameter(final MethodParameter parameter) { return TransactionTokenContext.class.equals(parameter .getParameterType()); }  @Override boolean supportsParameter(final MethodParameter parameter); @Override Object resolveArgument(MethodParameter parameter,
            ModelAndViewContainer mavContainer, NativeWebRequest webRequest,
            WebDataBinderFactory binderFactory);  }
@Test public void testSupportsParameter01() { TransactionTokenContextHandlerMethodArgumentResolver resolver = new TransactionTokenContextHandlerMethodArgumentResolver(); MethodParameter parameter = mock(MethodParameter.class); Mockito.<Class<?>> when(parameter.getParameterType()).thenReturn( TransactionTokenContext.class); boolean result = resolver.supportsParameter(parameter); assertThat(result, is(true)); }
@Test public void testSupportsParameter02() { TransactionTokenContextHandlerMethodArgumentResolver resolver = new TransactionTokenContextHandlerMethodArgumentResolver(); MethodParameter parameter = mock(MethodParameter.class); Mockito.<Class<?>> when(parameter.getParameterType()).thenReturn( Object.class); boolean result = resolver.supportsParameter(parameter); assertThat(result, is(false)); }