@Test public void testFieldOptionalDefaultFalse() throws IOException { Field field = BatfishObjectMapper.mapper().readValue("{}", Field.class); assertThat(field.getOptional(), equalTo(false)); }
@JsonProperty(BfConsts.PROP_OPTIONAL) public boolean getOptional() { return _optional; }
Field { @JsonProperty(BfConsts.PROP_OPTIONAL) public boolean getOptional() { return _optional; } }
Field { @JsonProperty(BfConsts.PROP_OPTIONAL) public boolean getOptional() { return _optional; }  }
Field { @JsonProperty(BfConsts.PROP_OPTIONAL) public boolean getOptional() { return _optional; }  @JsonProperty(BfConsts.PROP_OPTIONAL) boolean getOptional(); @Nullable @JsonProperty(BfConsts.PROP_TYPE) Variable.Type getType(); @JsonProperty(BfConsts.PROP_OPTIONAL) void setOptional(boolean optional); @JsonProperty(BfConsts.PROP_TYPE) void setType(Variable.Type type); }
Field { @JsonProperty(BfConsts.PROP_OPTIONAL) public boolean getOptional() { return _optional; }  @JsonProperty(BfConsts.PROP_OPTIONAL) boolean getOptional(); @Nullable @JsonProperty(BfConsts.PROP_TYPE) Variable.Type getType(); @JsonProperty(BfConsts.PROP_OPTIONAL) void setOptional(boolean optional); @JsonProperty(BfConsts.PROP_TYPE) void setType(Variable.Type type);  }