Package org.stringtree.mojasef.model

Examples of org.stringtree.mojasef.model.RemoteSpecCommonContext


  protected RequestContext context;
  protected TestOutputCollector output;
  protected Object application;
 
  protected Repository init(String spec) throws IOException {
    common = new RemoteSpecCommonContext(spec, false);
    return common;
  }
View Full Code Here


import org.stringtree.tract.ByteTract;

public class CommonContextFallbackTest extends TestCase {
   
    public void testGetFromContext() throws IOException {
        CommonContext context = new RemoteSpecCommonContext("src/test/files/fb/fa.spec");
        Fetcher tpls = (Fetcher)context.getObject(MojasefConstants.TEMPLATE_SOURCE);
        assertEquals("I am aa: ${*hello}", tpls.getObject("home"));
        assertEquals("Hello, ${value}!", tpls.getObject("hello"));
    }
View Full Code Here

public class CommonContextEmptyTest extends TestCase {
  CommonContext context;
  StringFinder finder;
 
  public void setUp() {
    context = new RemoteSpecCommonContext((URL)null);
    finder = new FetcherStringFinder(context);
  }
View Full Code Here

public class CommonContextSimpleTest extends TestCase {
  CommonContext context;
  StringFinder finder;
 
  public void setUp() throws IOException {
    context = new RemoteSpecCommonContext("src/test/files/cc1.spec");
    finder = new FetcherStringFinder(context);
  }
View Full Code Here

public class CommonContextAccessorApplicationContextTest extends TestCase {
    CommonContext context;
    StringFinder finder;
   
    public void setUp() throws IOException {
        context = new RemoteSpecCommonContext("src/test/files/ccaa.spec");
        finder = new FetcherStringFinder(context);
    }
View Full Code Here

public class CommonContextMountTest extends TestCase {
  CommonContext context;
  StringFinder finder;
 
  public void setUp() throws IOException {
    context = new RemoteSpecCommonContext("src/test/files/http2.spec");
    finder = new FetcherStringFinder(context);
  }
View Full Code Here

public class CommonContextLiteralApplicationContextTest extends TestCase {
    CommonContext context;
    StringFinder finder;
   
    public void setUp() throws IOException {
        context = new RemoteSpecCommonContext("src/test/files/ccac.spec");
        finder = new FetcherStringFinder(context);
    }
View Full Code Here

TOP

Related Classes of org.stringtree.mojasef.model.RemoteSpecCommonContext

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.