예제 #1
0
 @Test
 public void
     HandlerMethodインスタンスに付与されていないメソッドを対象SessionAttributeComplete注釈のインスタンスを取得した場合nullが返却される()
         throws Exception {
   HandlerMethod handler =
       new HandlerMethod(
           new ControllersTestController(), ControllersTestController.class.getMethod("test"));
   assertThat(
       Controllers.findSessionAttributeCompleteAnnotation(handler.getMethod()), is(nullValue()));
 }
예제 #2
0
 @Test
 public void HandlerMethodインスタンスに付与されているSessionAttributeComplete注釈のインスタンスを取得() throws Exception {
   HandlerMethod handler =
       new HandlerMethod(
           new ControllersTestController(),
           ControllersTestController.class.getMethod("sessionAttributeComplete"));
   assertThat(
       Controllers.findSessionAttributeCompleteAnnotation(handler.getMethod()),
       is(notNullValue()));
 }