Examples of DependencyTrackerImpl


Examples of com.volantis.xml.expression.impl.DependencyTrackerImpl

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        Dependency dependency = tracker.extractDependency();
        assertEquals(Cacheability.CACHEABLE, dependency.getCacheability());
        assertEquals(Period.INDEFINITELY, dependency.getTimeToLive());
        TestCaseAbstract.assertEquals(Freshness.FRESH, dependency.freshness(contextMock));
        try {
            dependency.revalidate(contextMock);
            fail("Did not detect invalid call to revalidate");
        } catch(IllegalStateException e) {
            // Expected.
        }

        // Add the dependency from the empty tracker to another, it should
        // be ignored by this tracker so it should behave just as if it only
        // had a single dependency added.
        tracker = new DependencyTrackerImpl();
        tracker.addDependency(dependency);
        tracker.addDependency(dependency1Mock);

        dependency = tracker.extractDependency();
        assertSame(dependency1Mock, dependency);
    }
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTrackerImpl

        // =====================================================================
        //   Test Expectations
        // =====================================================================

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        tracker.addDependency(dependency1Mock);
        Dependency aggregate = tracker.extractDependency();
        assertSame(dependency1Mock, aggregate);
    }
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTrackerImpl

        // =====================================================================
        //   Test Expectations
        // =====================================================================
        DependencyTracker tracker =
                new DependencyTrackerImpl();
        tracker.addDependency(dependency1Mock);
        tracker.addDependency(dependency2Mock);

        Dependency aggregate = tracker.extractDependency();

        Cacheability cacheability = aggregate.getCacheability();
        assertEquals(Cacheability.UNCACHEABLE, cacheability);

        Period timeToLive = aggregate.getTimeToLive();
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.