Java 类freemarker.template.TemplateMethodModel 实例源码

项目:testability-explorer    文件:ReportModel.java   
public void setMessageBundle(TemplateMethodModel resourceBundleModel) {
  this.messageBundleModel = resourceBundleModel;
}
项目:testability-explorer    文件:ReportModel.java   
public void setSourceLinker(TemplateMethodModel sourceLinker) {
  this.sourceLinker = sourceLinker;
}
项目:testability-explorer    文件:ReportModel.java   
public TemplateMethodModel getMessage() {
  return messageBundleModel;
}
项目:testability-explorer    文件:ReportModel.java   
public TemplateMethodModel getSourceLink() {
  return sourceLinker;
}
项目:dagger    文件:UriMethodTest.java   
private Object executeUriMethod(String contextPath, String relativePath) throws TemplateModelException {
    TemplateMethodModel uriMethod = new UriMethod(contextPath);
    return uriMethod.exec(asList(relativePath));
}
项目:dagger    文件:UriMethodTest.java   
@Test(expected = TemplateModelException.class)
public void test_throw_exception_when_no_arguments_are_provided() throws Throwable {
    TemplateMethodModel uriMethod = new UriMethod("/context");
    uriMethod.exec(emptyList());
}
项目:dagger    文件:UriMethodTest.java   
@Test(expected = TemplateModelException.class)
public void test_only_one_argument_is_expected() throws Throwable {
    TemplateMethodModel uriMethod = new UriMethod("/context");
    uriMethod.exec(asList("/foo", "/bar"));
}