Package a.org.fakereplace.testsuite.shared

Examples of a.org.fakereplace.testsuite.shared.ClassReplacer.queueClassForReplacement()


    @Test
    public void testClientProxyReplacement() throws InterruptedException {
        dependentBean.setValue("Hello CDI");
        final ClassReplacer replacer = new ClassReplacer();
        replacer.queueClassForReplacement(AppScopedBean.class, AppScopedBean1.class);
        replacer.queueClassForReplacement(DependentBean.class, DependentBean1.class);
        replacer.replaceQueuedClasses();
        Assert.assertEquals("Hello CDI", dependentBean.getValue());

    }
View Full Code Here


    @Test
    public void testClientProxyReplacement() throws InterruptedException {
        dependentBean.setValue("Hello CDI");
        final ClassReplacer replacer = new ClassReplacer();
        replacer.queueClassForReplacement(AppScopedBean.class, AppScopedBean1.class);
        replacer.queueClassForReplacement(DependentBean.class, DependentBean1.class);
        replacer.replaceQueuedClasses();
        Assert.assertEquals("Hello CDI", dependentBean.getValue());

    }
}
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.