Package org.apache.tuscany.spi.implementation.java

Examples of org.apache.tuscany.spi.implementation.java.ImplementationProcessor


    private Monitor monitor;

    public void testRegister() throws Exception {
        IntrospectionRegistryImpl registry = new IntrospectionRegistryImpl(monitor);
        ImplementationProcessor processor = EasyMock.createNiceMock(ImplementationProcessor.class);
        registry.registerProcessor(processor);
    }
View Full Code Here


        registry.registerProcessor(processor);
    }

    public void testUnegister() throws Exception {
        IntrospectionRegistryImpl registry = new IntrospectionRegistryImpl(monitor);
        ImplementationProcessor processor = EasyMock.createNiceMock(ImplementationProcessor.class);
        registry.registerProcessor(processor);
        registry.unregisterProcessor(processor);
    }
View Full Code Here

    }

    @SuppressWarnings("unchecked")
    public void testWalk() throws Exception {
        IntrospectionRegistryImpl registry = new IntrospectionRegistryImpl(monitor);
        ImplementationProcessor processor = EasyMock.createMock(ImplementationProcessor.class);
        processor.visitClass(EasyMock.isA(CompositeComponent.class),
            EasyMock.eq(Bar.class),
            EasyMock.isA(PojoComponentType.class),
            EasyMock.isA(DeploymentContext.class));
        processor.visitConstructor(EasyMock.isA(CompositeComponent.class),
            EasyMock.isA(Constructor.class),
            EasyMock.isA(PojoComponentType.class),
            EasyMock.isA(DeploymentContext.class));
        processor.visitMethod(EasyMock.isA(CompositeComponent.class),
            EasyMock.isA(Method.class),
            EasyMock.isA(PojoComponentType.class),
            EasyMock.isA(DeploymentContext.class));
        processor.visitField(EasyMock.isA(CompositeComponent.class),
            EasyMock.isA(Field.class),
            EasyMock.isA(PojoComponentType.class),
            EasyMock.isA(DeploymentContext.class));
        processor.visitSuperClass(EasyMock.isA(CompositeComponent.class),
            EasyMock.isA(Class.class),
            EasyMock.isA(PojoComponentType.class),
            EasyMock.isA(DeploymentContext.class));
        processor.visitEnd(EasyMock.isA(CompositeComponent.class),
            EasyMock.isA(Class.class),
            EasyMock.isA(PojoComponentType.class),
            EasyMock.isA(DeploymentContext.class));

     //   mock.expects(once()).method("visitClass");
View Full Code Here

TOP

Related Classes of org.apache.tuscany.spi.implementation.java.ImplementationProcessor

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.