org.mozilla.zest.core.v1.ZestFieldDefinition.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(111)

本文整理了Java中org.mozilla.zest.core.v1.ZestFieldDefinition.<init>()方法的一些代码示例,展示了ZestFieldDefinition.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZestFieldDefinition.<init>()方法的具体详情如下:
包路径:org.mozilla.zest.core.v1.ZestFieldDefinition
类名称:ZestFieldDefinition
方法名:<init>

ZestFieldDefinition.<init>介绍

[英]Instantiates a new zest field definition.
[中]实例化一个新的zest字段定义。

代码示例

代码示例来源:origin: mozilla/zest

@Override
public ZestFieldDefinition deepCopy() {
  ZestFieldDefinition ze = new ZestFieldDefinition(this.formName, this.fieldName);
  ze.setFormIndex(this.getFormIndex());
  return ze;
}

代码示例来源:origin: mozilla/zest

@Test(expected = ZestAssignFailException.class)
  public void shouldFailTheAssignIfResponseIsNotProvided() throws Exception {
    // Given
    ZestResponse response = null;
    ZestAssignFieldValue assignFieldValue =
        new ZestAssignFieldValue("Var", new ZestFieldDefinition(0, "Field"));
    // When
    assignFieldValue.assign(response, new TestRuntime());
    // Then = ZestAssignFailException
  }
}

代码示例来源:origin: mozilla/zest

zc2.addIf(req2);
checkOrder(new ZestStatement[] {zc1, req1, zc2, req2, null});
xfrm1.setFieldDefinition(new ZestFieldDefinition(1, "xxx"));
checkOrder(new ZestStatement[] {zc1, req1, zc2, req2, req3, zc3, req4, req5, zc4, null});
zc4.addElse(req6);
xfrm2.setFieldDefinition(new ZestFieldDefinition(1, "xxx"));

相关文章