Package org.jboss.weld.el

Examples of org.jboss.weld.el.WeldMethodExpression


    @Test
    public void testEquals() {
        MethodExpression delegate = new MockMethodExpression("doSomething");

        MethodExpression wrapper1 = new WeldMethodExpression(delegate);
        MethodExpression wrapper2 = new WeldMethodExpression(delegate);

        assertTrue("should be equal", wrapper1.equals(wrapper2));
        assertTrue("should be equal", wrapper2.equals(wrapper1));

        // since there is no way of making delegate.equals(wrapper) return true, we must preserve the symmetry by
        // making wrapper.equals(delegate) also return false.
        assertFalse("should not be equal", delegate.equals(wrapper1));
        assertFalse("should not be equal", wrapper1.equals(delegate));
View Full Code Here

TOP

Related Classes of org.jboss.weld.el.WeldMethodExpression

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.