Package org.jtalks.jcommune.plugin.api.web.validation.annotations

Examples of org.jtalks.jcommune.plugin.api.web.validation.annotations.BbCodeNesting


public class BbCodeNestingValidatorTest {
    private BbCodeNestingValidator instance;
       
    @BeforeMethod
    public void initMocks() throws NoSuchFieldException {
        BbCodeNesting annotation = mock(BbCodeNesting.class);
        // limit nesting to 2
        when(annotation.maxNestingValue()).thenReturn(2);
        instance = new BbCodeNestingValidator();
        instance.initialize(annotation);
    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.plugin.api.web.validation.annotations.BbCodeNesting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.