Package org.springmodules.cache.config

Examples of org.springmodules.cache.config.DomElementStub.appendChild()


  public void testDoParseFlushingModelWithMoreThanOneCacheSubelement() {
    boolean flushBeforeMethodExecution = true;

    Element element = new DomElementStub("flushing");
    element.appendChild(createCacheElement("cacheOne", "pojos,daos"));
    element.appendChild(createCacheElement("cacheTwo", "services,web"));

    CacheStruct[] cacheStructs = { new CacheStruct("cacheOne", "pojos,daos"),
        new CacheStruct("cacheTwo", "services,web") };
View Full Code Here


  public void testDoParseFlushingModelWithMoreThanOneCacheSubelement() {
    boolean flushBeforeMethodExecution = true;

    Element element = new DomElementStub("flushing");
    element.appendChild(createCacheElement("cacheOne", "pojos,daos"));
    element.appendChild(createCacheElement("cacheTwo", "services,web"));

    CacheStruct[] cacheStructs = { new CacheStruct("cacheOne", "pojos,daos"),
        new CacheStruct("cacheTwo", "services,web") };

    JcsFlushingModel expected = new JcsFlushingModel();
View Full Code Here

    String cacheName = "testCache";
    String groups = "group1,group2";
    boolean flushBeforeMethodExecution = true;

    Element element = new DomElementStub("flushing");
    element.appendChild(createCacheElement(cacheName, groups));

    FlushingModel actual = parser.doParseFlushingModel(element,
        flushBeforeMethodExecution);
    JcsFlushingModel expected = new JcsFlushingModel();
    expected.setCacheStruct(new CacheStruct(cacheName, groups));
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.