Package com.volantis.shared.dependency

Examples of com.volantis.shared.dependency.DependencyContextMock


    private XMLPipelineContextMock pipelineContextMock;

    public void setUp() throws Exception {
        super.setUp();

        final DependencyContextMock dependencyContextMock =
            new DependencyContextMock("dependencyContextMock", expectations);
        pipelineContextMock =
            new XMLPipelineContextMock("pipelineContextMock", expectations);
        final XMLPipeline pipeline =
            new XMLPipelineProcessImpl(pipelineContextMock);
View Full Code Here


        // Prepare mocks for startElement method
        contextMock.expects.findObject(CacheProperties.class).
                returns(properties).any();

        final DependencyContextMock dependencyContextMock =
            new DependencyContextMock("dependencyContextMock", expectations);
        contextMock.expects.getDependencyContext().returns(
            dependencyContextMock).any();

        // VBM:2006120611 - using Mocks can be fragile. Needed to add new mock
        // and expectation to get this test to pass again.
View Full Code Here

                expectations);

        dependency2Mock = new DependencyMock("dependency2Mock",
                expectations);

        contextMock = new DependencyContextMock("contextMock", expectations);
    }
View Full Code Here

                expectations);

        dependency2Mock = new DependencyMock("dependency2Mock",
                expectations);

        contextMock = new DependencyContextMock("contextMock", expectations);

    }
View Full Code Here

        assertEquals(Freshness.REVALIDATE,
            content.getDependency().freshness(null));
        assertEquals(Period.ZERO, content.getDependency().getTimeToLive());

        // let's revalidate the dependency
        final DependencyContextMock dependencyContextMock =
            new DependencyContextMock("dependencyContextMock", expectations);
        final MockFactory mockFactory = MockFactory.getDefaultInstance();
        final URLContent[] contents = new URLContent[1];
        dependencyContextMock.fuzzy.setProperty(
            url, mockFactory.expectsAny()).does(new MethodAction() {
                    public Object perform(final MethodActionEvent event)
View Full Code Here

TOP

Related Classes of com.volantis.shared.dependency.DependencyContextMock

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.