Package org.codehaus.mojo.gwt.webxml

Examples of org.codehaus.mojo.gwt.webxml.ServletAnnotationFinder


    extends PlexusTestCase
{
    public void testFindServletEmptyPath()
        throws Exception
    {
        ServletAnnotationFinder servletAnnotationFinder = (ServletAnnotationFinder) lookup( ServletAnnotationFinder.class
            .getName() );
        Set<ServletDescriptor> servletDescriptors = servletAnnotationFinder.findServlets( "org.codehaus.mojo.gwt",
                                                                                          null, Thread.currentThread()
                                                                                              .getContextClassLoader() );

        assertEquals( 1, servletDescriptors.size() );
        ServletDescriptor desc = servletDescriptors.iterator().next();
View Full Code Here


    }

    public void testFindServletWithPath()
        throws Exception
    {
        ServletAnnotationFinder servletAnnotationFinder = (ServletAnnotationFinder) lookup( ServletAnnotationFinder.class
            .getName() );
        Set<ServletDescriptor> servletDescriptors = servletAnnotationFinder.findServlets( "org.codehaus.mojo.gwt",
                                                                                          "foo", Thread.currentThread()
                                                                                              .getContextClassLoader() );

        assertEquals( 1, servletDescriptors.size() );
        ServletDescriptor desc = servletDescriptors.iterator().next();
View Full Code Here

    }

    public void testFindServletWithPrependPath()
        throws Exception
    {
        ServletAnnotationFinder servletAnnotationFinder = (ServletAnnotationFinder) lookup( ServletAnnotationFinder.class
            .getName() );
        Set<ServletDescriptor> servletDescriptors = servletAnnotationFinder.findServlets( "org.codehaus.mojo.gwt",
                                                                                          "/foo", Thread
                                                                                              .currentThread()
                                                                                              .getContextClassLoader() );

        assertEquals( 1, servletDescriptors.size() );
View Full Code Here

TOP

Related Classes of org.codehaus.mojo.gwt.webxml.ServletAnnotationFinder

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.