Package net.infopeers.restrant.engine

Examples of net.infopeers.restrant.engine.PrefixedPlaceholderFormatter


public class JsServiceInvokerBuilderFactoryTest {

  @Test
  public void senario() throws Exception{
   
    PrefixedPlaceholderFormatter phFormatter = new PrefixedPlaceholderFormatter();
    Templator t = new Templator("root", phFormatter);
    StringWriter sw = new StringWriter();
    PrintWriter w = new PrintWriter(sw);
   
    t.appendHeader(w);
View Full Code Here


  }
 
  @Test
  public void senarioTestGet() throws Exception {

    PrefixedPlaceholderFormatter phFormatter = new PrefixedPlaceholderFormatter();
    String pathFormat = "/test/testa/myaction?to=:TO";

    BasicPatternParser bp = new BasicPatternParser(pathFormat, phFormatter);
    bp.controller("TestClass").action("go").onGet();
View Full Code Here

  }

  @Test
  public void senarioTestDefault() throws Exception {

    PrefixedPlaceholderFormatter phFormatter = new PrefixedPlaceholderFormatter();
    String pathFormat = "/test/testa/myaction?to=:TO";

    BasicPatternParser bp = new BasicPatternParser(pathFormat, phFormatter);
    bp.controller("TestClass").action("go");
View Full Code Here

  }

  @Test
  public void senarioTestPost() throws Exception {

    PrefixedPlaceholderFormatter phFormatter = new PrefixedPlaceholderFormatter();
    String pathFormat = "/test/testa/myaction?to=:TO";

    BasicPatternParser bp = new BasicPatternParser(pathFormat, phFormatter);
    bp.controller("TestClass").action("go").onPost();
View Full Code Here

  }

  @Test
  public void senarioTestRestful() throws Exception {

    PrefixedPlaceholderFormatter phFormatter = new PrefixedPlaceholderFormatter();
    String pathFormat = "/test/testa/myaction?to=:TO";

    BasicPatternParser bp = new BasicPatternParser(pathFormat, phFormatter);
    bp.controller("TestClass").action("go").onRestful();
View Full Code Here

TOP

Related Classes of net.infopeers.restrant.engine.PrefixedPlaceholderFormatter

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.