Package org.apache.cayenne.reflect

Examples of org.apache.cayenne.reflect.ClassDescriptorFactory


    public void testServerDescriptorFactory() {
        EntityResolver resolver = runtime.getDataDomain().getEntityResolver();
        resolver.getClassDescriptorMap().clearDescriptors();

        ClassDescriptor descriptor = mock(ClassDescriptor.class);
        ClassDescriptorFactory factory = mock(ClassDescriptorFactory.class);
        when(factory.getDescriptor("MtTable1")).thenReturn(descriptor);
       
        resolver.getClassDescriptorMap().addFactory(factory);
        try {
            ClassDescriptor resolved = resolver.getClassDescriptor("MtTable1");
            assertNotNull(resolved);
View Full Code Here

TOP

Related Classes of org.apache.cayenne.reflect.ClassDescriptorFactory

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.