Package org.apache.webbeans.config

Examples of org.apache.webbeans.config.WebBeansScanner.scan()


    public void testWebBeansScanner() throws Exception
    {
        WebBeansScanner scanner = new WebBeansScanner();

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

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

        Map<String, Set<String>> classMap = scanner.getANNOTATION_DB().getClassIndex();
View Full Code Here


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

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

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

TOP
Copyright © 2018 www.massapi.com. 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.