Package org.apache.turbine.test

Examples of org.apache.turbine.test.TestComponent


        try
        {
            AvalonComponentService cs = (AvalonComponentService)
                    TurbineServices.getInstance().getService(AvalonComponentService.SERVICE_NAME);

            TestComponent tc = (TestComponent) cs.lookup(TestComponent.ROLE);
            tc.test();
            cs.release(tc);
        }
        catch(Exception e)
        {
            e.printStackTrace();
View Full Code Here


        try
        {
            AvalonComponentService cs = (AvalonComponentService)
                    TurbineServices.getInstance().getService(AvalonComponentService.SERVICE_NAME);

            TestComponent tc = (TestComponent) cs.lookup(TestComponent.ROLE);
            tc.test();
            cs.release(tc);
        }
        catch(Exception e)
        {
            e.printStackTrace();
View Full Code Here

            ServiceManagerService serviceManagerService
                    = ServiceManagerServiceImpl.getInstance();
            assertNotNull(serviceManagerService);

            assertTrue(serviceManagerService.hasService(TestComponent.ROLE));
            TestComponent tc = (TestComponent)
                    serviceManagerService.lookup(TestComponent.ROLE);
            tc.test();
            serviceManagerService.release(tc);
        }
        catch(Exception e)
        {
            e.printStackTrace();
View Full Code Here

        try
        {
            AvalonComponentService cs = (AvalonComponentService)
                    TurbineServices.getInstance().getService(AvalonComponentService.SERVICE_NAME);

            TestComponent tc = (TestComponent) cs.lookup(TestComponent.ROLE);
            tc.test();
            cs.release(tc);
        }
        catch(Exception e)
        {
            e.printStackTrace();
View Full Code Here

        try
        {
            AvalonComponentService cs = (AvalonComponentService)
                    TurbineServices.getInstance().getService(AvalonComponentService.SERVICE_NAME);

            TestComponent tc = (TestComponent) cs.lookup(TestComponent.ROLE);
            tc.test();
            cs.release(tc);
        }
        catch(Exception e)
        {
            e.printStackTrace();
View Full Code Here

     */
    public void testGetAndUseTestComponent()
    {
        try
        {
            TestComponent tc = (TestComponent)TurbineServices.getInstance().getService(TestComponent.ROLE);
            tc.test();
        }
        catch(Exception e)
        {
            e.printStackTrace();
            fail();
View Full Code Here

TOP

Related Classes of org.apache.turbine.test.TestComponent

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.