Examples of JsfApiAbstraction


Examples of org.jboss.weld.jsf.JsfApiAbstraction

*/
public class JsfApiAbstractionTest {

    @Test
    public void testDetectsJsf12Version() {
        JsfApiAbstraction abstraction = new JsfApiAbstraction(getResourceLoaderHidingJsf20Classes());
        Assert.assertEquals(1.2, abstraction.MINIMUM_API_VERSION, 0);
        Assert.assertFalse(abstraction.isApiVersionCompatibleWith(2.0));
    }
View Full Code Here

Examples of org.jboss.weld.jsf.JsfApiAbstraction

        Assert.assertFalse(abstraction.isApiVersionCompatibleWith(2.0));
    }

    @Test
    public void testLoadsJsf12Classes() {
        JsfApiAbstraction abstraction = new JsfApiAbstraction(getResourceLoaderHidingJsf20Classes());
        Assert.assertEquals(FacesContext.class, abstraction.FACES_CONTEXT);
        Assert.assertEquals(Dummy.class, abstraction.BEHAVIOR_CLASS);
    }
View Full Code Here

Examples of org.jboss.weld.jsf.JsfApiAbstraction

        Assert.assertEquals(Dummy.class, abstraction.BEHAVIOR_CLASS);
    }

    @Test
    public void testDetectsJsf20Version() {
        JsfApiAbstraction abstraction = new JsfApiAbstraction(getResourceLoader());
        Assert.assertEquals(2.0, abstraction.MINIMUM_API_VERSION, 0);
        Assert.assertTrue(abstraction.isApiVersionCompatibleWith(2.0));
    }
View Full Code Here

Examples of org.jboss.weld.jsf.JsfApiAbstraction

        Assert.assertTrue(abstraction.isApiVersionCompatibleWith(2.0));
    }

    @Test
    public void testLoadsJsf20Classes() {
        JsfApiAbstraction abstraction = new JsfApiAbstraction(getResourceLoader());
        Assert.assertEquals(FacesContext.class, abstraction.FACES_CONTEXT);
        Assert.assertEquals(Behavior.class, abstraction.BEHAVIOR_CLASS);
    }
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.