Package org.apache.myfaces.extensions.validator.test.base.mock

Examples of org.apache.myfaces.extensions.validator.test.base.mock.MockMetaDataTransformerFactory


        Assert.assertEquals(7, count);
    }

    private int getNameMapperAndSubNameMapperCount()
    {
        MockMetaDataTransformerFactory nameMapperAwareFactory =
                (ExtValContext.getContext()
                .getFactoryFinder()
                .getFactory(FactoryNames.META_DATA_TRANSFORMER_FACTORY, MockMetaDataTransformerFactory.class));

        List<NameMapper<ValidationStrategy>> nameMapperList = nameMapperAwareFactory.getRegisteredNameMapperList();

        int count = 0;

        for(NameMapper<ValidationStrategy> nameMapper : nameMapperList)
        {
            if(!(nameMapper instanceof SubMapperAwareNameMapper))
            {
                count++;
            }
        }

        List<NameMapper<ValidationStrategy>> subNamMappers = nameMapperAwareFactory.getSubNameMapperList();
        count += subNamMappers.size();
        return count;
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.validator.test.base.mock.MockMetaDataTransformerFactory

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.