@@ -0,0 +1,1302 @@
+package org.docksidestage.app.web.wx.validator;%0A%0Aimport org.docksidestage.app.web.wx.validator.WxValidatorForm.SeaBean;%0Aimport org.docksidestage.mylasta.action.FortressMessages;%0Aimport org.docksidestage.unit.UnitFortressWebTestCase;%0Aimport org.lastaflute.core.message.UserMessages;%0Aimport org.lastaflute.web.validation.Required;%0A%0A/**%0A * @author jflute%0A */%0Apublic class WxValidatorActionTest extends UnitFortressWebTestCase %7B%0A%0A    public void test_index_validationError_messages() %7B%0A        // ## Arrange ##%0A        WxValidatorAction action = new WxValidatorAction();%0A        inject(action);%0A        WxValidatorForm form = new WxValidatorForm();%0A        form.seaBean = new SeaBean();%0A%0A        // ## Act ##%0A        // ## Assert ##%0A        assertValidationError(() -%3E action.index(form)).handle(data -%3E %7B%0A            data.requiredMessageOf(%22seaBean.over%22, Required.class);%0A            assertException(AssertionError.class, () -%3E %7B%0A                data.requiredMessageOf(%22seaBean.over%22, FortressMessages.CONSTRAINTS_Required_MESSAGE);%0A            %7D);%0A            UserMessages messages = data.requiredMessages();%0A            assertTrue(messages.hasMessageOf(%22seaBean.over%22));%0A            assertFalse(messages.hasMessageOf(%22seaBean.over%22, FortressMessages.CONSTRAINTS_Required_MESSAGE));%0A        %7D);%0A    %7D%0A%7D%0A

test hasMessageOf() by annotation