@@ -0,0 +1,2066 @@
+/*%0A * Copyright 2015-2017 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,%0A * either express or implied. See the License for the specific language%0A * governing permissions and limitations under the License.%0A */%0Apackage org.docksidestage.mylasta.core.json;%0A%0Aimport javax.annotation.Resource;%0A%0Aimport org.docksidestage.dbflute.allcommon.CDef;%0Aimport org.docksidestage.unit.UnitFortressTestCase;%0Aimport org.lastaflute.core.json.JsonManager;%0Aimport org.lastaflute.core.json.exception.JsonPropertyClassificationCodeUnknownException;%0Aimport org.lastaflute.web.validation.Required;%0A%0A/**%0A * @author jflute%0A */%0Apublic class WxJsonManagerTest extends UnitFortressTestCase %7B%0A%0A    @Resource%0A    private JsonManager jsonManager;%0A%0A    // ===================================================================================%0A    //                                                                        Type Failure%0A    //                                                                        ============%0A    public void test_fromJson_typeFailure_cdef() %7B%0A        assertException(JsonPropertyClassificationCodeUnknownException.class, () -%3E %7B%0A            jsonManager.fromJson(%22%7Bstatus: %5C%22detarame%5C%22%7D%22, MockMaihama.class);%0A        %7D).handle(cause -%3E %7B%0A            log(cause);%0A        %7D);%0A    %7D%0A%0A    // ===================================================================================%0A    //                                                                        Small Helper%0A    //                                                                        ============%0A    public static class MockMaihama %7B%0A%0A        @Required%0A        public CDef.MemberStatus status;%0A    %7D%0A%7D%0A

make whitebox test