Package org.apache.tapestry.enhance

Examples of org.apache.tapestry.enhance.EnhancementOperation


public class MetaAnnotationWorkerTest extends BaseAnnotationTestCase
{

    public void testMeta()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = newSpec();
        Location l = newLocation();

        spec.setProperty("foo", "bar");
        spec.setProperty("biff", "bazz");
View Full Code Here


        verifyControls();
    }

    public void testMetaInSubclass()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = newSpec();
        Location l = newLocation();

        // From MetaPage
        spec.setProperty("foo", "bar");
View Full Code Here

    }

    public void testNoEqualsSign()
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = newSpec();
        Location l = newLocation();

        replayControls();
View Full Code Here

*/
public class TestComponentClassAnnotationWorker extends BaseAnnotationTestCase
{
    private IComponentSpecification attempt(Class baseClass, Location location)
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        replayControls();

        new ComponentClassAnnotationWorker().performEnhancement(op, spec, baseClass, location);
View Full Code Here

public class TestComponentClassAnnotationWorker extends BaseAnnotationTestCase
{
    private EnhancementOperation newOp(Class componentClass)
    {
        MockControl control = newControl(EnhancementOperation.class);
        EnhancementOperation op = (EnhancementOperation) control.getMock();

        op.getBaseClass();
        control.setReturnValue(componentClass);

        return op;
    }
View Full Code Here

        return op;
    }

    private IComponentSpecification attempt(Class baseClass, Location location)
    {
        EnhancementOperation op = newOp();
        IComponentSpecification spec = new ComponentSpecification();

        replayControls();

        new ComponentClassAnnotationWorker().performEnhancement(op, spec, baseClass, location);
View Full Code Here

        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

        assertNotNull(worker._delegate);
    }

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

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

        delegate.injectState(op, "barneyASO", "barney");
View Full Code Here

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

        replayControls();
View Full Code Here

public class TestAnnotationEnhancementWorker extends BaseAnnotationTestCase
{
    protected EnhancementOperation newOp(Class baseClass)
    {
        MockControl control = newControl(EnhancementOperation.class);
        EnhancementOperation op = (EnhancementOperation) control.getMock();

        op.getBaseClass();
        control.setReturnValue(baseClass);

        return op;
    }
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.