java类freemarker.template.TemplateMethodModel的实例源码

ReportModel.java 文件源码 项目:testability-explorer 阅读 24 收藏 0 点赞 0 评论 0
public void setMessageBundle(TemplateMethodModel resourceBundleModel) {
  this.messageBundleModel = resourceBundleModel;
}
ReportModel.java 文件源码 项目:testability-explorer 阅读 24 收藏 0 点赞 0 评论 0
public void setSourceLinker(TemplateMethodModel sourceLinker) {
  this.sourceLinker = sourceLinker;
}
ReportModel.java 文件源码 项目:testability-explorer 阅读 26 收藏 0 点赞 0 评论 0
public TemplateMethodModel getMessage() {
  return messageBundleModel;
}
ReportModel.java 文件源码 项目:testability-explorer 阅读 23 收藏 0 点赞 0 评论 0
public TemplateMethodModel getSourceLink() {
  return sourceLinker;
}
UriMethodTest.java 文件源码 项目:dagger 阅读 27 收藏 0 点赞 0 评论 0
private Object executeUriMethod(String contextPath, String relativePath) throws TemplateModelException {
    TemplateMethodModel uriMethod = new UriMethod(contextPath);
    return uriMethod.exec(asList(relativePath));
}
UriMethodTest.java 文件源码 项目:dagger 阅读 20 收藏 0 点赞 0 评论 0
@Test(expected = TemplateModelException.class)
public void test_throw_exception_when_no_arguments_are_provided() throws Throwable {
    TemplateMethodModel uriMethod = new UriMethod("/context");
    uriMethod.exec(emptyList());
}
UriMethodTest.java 文件源码 项目:dagger 阅读 26 收藏 0 点赞 0 评论 0
@Test(expected = TemplateModelException.class)
public void test_only_one_argument_is_expected() throws Throwable {
    TemplateMethodModel uriMethod = new UriMethod("/context");
    uriMethod.exec(asList("/foo", "/bar"));
}


问题


面经


文章

微信
公众号

扫码关注公众号