Package org.apache.wink.server.internal.application

Examples of org.apache.wink.server.internal.application.ApplicationProcessor


    }

    public void testApplication() {
        ResourceRegistryMock resourceRegistry = new ResourceRegistryMock();
        ProvidersRegistryMock providersRegistry = new ProvidersRegistryMock();
        new ApplicationProcessor(new ApplicationMock(), resourceRegistry, providersRegistry)
            .process();
        assertTrue(providersRegistry.classes.contains(FileProvider.class));
        assertTrue(resourceRegistry.classes.contains(RootResource.class));
        assertEquals(1, providersRegistry.classes.size());
        assertEquals(1, resourceRegistry.classes.size());
View Full Code Here


    }

    public void testWinkApplication() {
        ResourceRegistryMock resourceRegistry = new ResourceRegistryMock();
        ProvidersRegistryMock providersRegistry = new ProvidersRegistryMock();
        new ApplicationProcessor(new WinkApplicationMock(), resourceRegistry, providersRegistry)
            .process();
        assertTrue(providersRegistry.classes.contains(FileProvider.class));
        assertTrue(resourceRegistry.classes.contains(RootResource.class));
        assertEquals(1, providersRegistry.classes.size());
        assertEquals(1, resourceRegistry.classes.size());
View Full Code Here

TOP

Related Classes of org.apache.wink.server.internal.application.ApplicationProcessor

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.