Package org.apache.webbeans.spi.deployer

Examples of org.apache.webbeans.spi.deployer.MetaDataDiscoveryService


    }

    @Test
    public void testWebBeansScanner() throws Exception
    {
        MetaDataDiscoveryService scanner = ServiceLoader.getService(MetaDataDiscoveryService.class);

        ServletContext servletContext = new MockServletContext();
        scanner.init(servletContext);

        // try to re-run the scan
        scanner.scan();

        Map<String, Set<String>> classMap = scanner.getClassIndex();
        Assert.assertNotNull(classMap);
        Assert.assertFalse(classMap.isEmpty());
        Set<String> testBeanAnnotations = classMap.get(ScannerTestBean.class.getName());

        String[] expectedAnnotations = new String[] { RequestScoped.class.getName(), Named.class.getName() };
View Full Code Here


    }

    @Test
    public void testWebBeansScanner() throws Exception
    {
        MetaDataDiscoveryService scanner = ServiceLoader.getService(MetaDataDiscoveryService.class);

        ServletContext servletContext = new MockServletContext();
        scanner.init(servletContext);

        // try to re-run the scan
        scanner.scan();

        Map<String, Set<String>> classMap = scanner.getClassIndex();
        Assert.assertNotNull(classMap);
        Assert.assertFalse(classMap.isEmpty());
        Set<String> testBeanAnnotations = classMap.get(ScannerTestBean.class.getName());

        String[] expectedAnnotations = new String[] { RequestScoped.class.getName(), Named.class.getName() };
View Full Code Here

TOP

Related Classes of org.apache.webbeans.spi.deployer.MetaDataDiscoveryService

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.