Package org.apache.webbeans.test.component

Examples of org.apache.webbeans.test.component.ContainUserComponent


        Object object = getManager().getInstance(comps.get(1));
        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        ContextFactory.destroyRequestContext(null);
        ContextFactory.destroySessionContext(session);
    }
View Full Code Here


        Object object = getManager().getInstance(comps.get(1));
        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        ContextFactory.destroyRequestContext(null);
        ContextFactory.destroySessionContext(session);
    }
View Full Code Here

        Object object = getManager().getInstance(comps.get(1));
        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        ContextFactory.destroyRequestContext(null);
        ContextFactory.destroySessionContext(session);
    }
View Full Code Here

        Object object = getManager().getInstance(comps.get(1));
        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        ContextFactory.destroyRequestContext(null);
        ContextFactory.destroySessionContext(session);
    }
View Full Code Here

        Object object = ManagerImpl.getManager().getContext(SessionScoped.class).get(comps.get(1), new CreationalContextImpl());
        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        ContextFactory.destroyRequestContext(null);
        ContextFactory.destroySessionContext(session);
    }
View Full Code Here

        Object object = getManager().getInstance(comps.get(1));
        Assert.assertNotNull(object);
        Assert.assertTrue(object instanceof ContainUserComponent);

        ContainUserComponent uc = (ContainUserComponent) object;

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        WebBeansContext.getInstance().getContextFactory().destroyRequestContext(null);
        WebBeansContext.getInstance().getContextFactory().destroySessionContext(session);
    }
View Full Code Here

        userComponent.setName("Gurkan");
        userComponent.setSurname("Erdogdu");

        Assert.assertNotNull(userComponent);

        ContainUserComponent uc = getInstance(ContainUserComponent.class);

        Assert.assertNotNull(uc.echo());
        Assert.assertEquals(uc.echo(), userComponent.getName() + " " + userComponent.getSurname());

        shutDownContainer();
    }
View Full Code Here

TOP

Related Classes of org.apache.webbeans.test.component.ContainUserComponent

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.