Package org.apache.tapestry.enhance

Examples of org.apache.tapestry.enhance.EnhancementOperation


        assertNotNull(worker._delegate);
    }

    public void testDelegation()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = newSpec();

        InjectObjectWorker delegate = (InjectObjectWorker) newMock(InjectObjectWorker.class);

        InjectedValueProvider provider = (InjectedValueProvider) newMock(InjectedValueProvider.class);
View Full Code Here


public class TestBeanAnnotationWorker extends BaseAnnotationTestCase
{
    public void testBeanClassSpecified()
    {
        Location l = newLocation();
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        Method m = findMethod(AnnotatedPage.class, "getMapBean");

        replay();
View Full Code Here

        assertNull(bs.getInitializers());
    }

    private EnhancementOperation newOp(String propertyName, Class propertyType)
    {
        EnhancementOperation op = newMock(EnhancementOperation.class);
       
        expect(op.getPropertyType(propertyName)).andReturn(propertyType);

        return op;
    }
View Full Code Here

    }

    public void testBeanClassNotSpecified()
    {
        Location l = newLocation();
        EnhancementOperation op = newOp("hashMapBean", HashMap.class);
        IComponentSpecification spec = new ComponentSpecification();

        Method m = findMethod(AnnotatedPage.class, "getHashMapBean");

        replay();
View Full Code Here

        assertNull(bs.getInitializers());
    }

    public void testInitializer()
    {
        EnhancementOperation op = newOp("beanWithInitializer", Target.class);
        IComponentSpecification spec = new ComponentSpecification();

        Method m = findMethod(AnnotatedPage.class, "getBeanWithInitializer");

        replay();
View Full Code Here

        assertEquals("intValue=10", lbi.getPropertyName());
    }

    public void testLifecycle()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        Method m = findMethod(AnnotatedPage.class, "getRenderLifecycleBean");

        replay();
View Full Code Here

public class TestEventListenerAnnotationWorker extends BaseAnnotationTestCase
{

    public void test_Event_Connection()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();
        Resource resource = newResource(AnnotatedPage.class);
       
        IComponentEventInvoker invoker = new ComponentEventInvoker();
       
View Full Code Here

        assert ((EventBoundListener)listeners.get(0)).shouldFocusForm() == false;
    }
   
    public void test_Form_Event_Connection()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();
        Resource resource = newResource(AnnotatedPage.class);
        IComponentEventInvoker invoker = new ComponentEventInvoker();
       
        EventListenerAnnotationWorker worker = new EventListenerAnnotationWorker();
View Full Code Here

        assert formListener.shouldFocusForm();
    }
   
    public void test_Targets_Not_Found()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = newSpec();
        Resource resource = newResource(AnnotatedPage.class);
       
        EventListenerAnnotationWorker worker = new EventListenerAnnotationWorker();
       
View Full Code Here

{
    public void testSuccess()
    {
        Location l = newLocation();
        Resource r = newMock(Resource.class);
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();
        spec.setSpecificationLocation(r);

        replay();
View Full Code Here

TOP

Related Classes of org.apache.tapestry.enhance.EnhancementOperation

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.