@Test public void testGetOrderedVariableNamesEmptyList() throws IOException { InstanceData instanceData = BatfishObjectMapper.mapper().readValue("{\"orderedVariableNames\":[]}", InstanceData.class); assertThat(instanceData.getOrderedVariableNames(), empty()); }
@JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull public List<String> getOrderedVariableNames() { return _orderedVariableNames; }
InstanceData { @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull public List<String> getOrderedVariableNames() { return _orderedVariableNames; } }
InstanceData { @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull public List<String> getOrderedVariableNames() { return _orderedVariableNames; } InstanceData(); }
InstanceData { @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull public List<String> getOrderedVariableNames() { return _orderedVariableNames; } InstanceData(); @JsonProperty(BfConsts.PROP_DESCRIPTION) String getDescription(); @JsonProperty(BfConsts.PROP_INSTANCE_NAME) String getInstanceName(); @JsonProperty(BfConsts.PROP_LONG_DESCRIPTION) String getLongDescription(); @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull List<String> getOrderedVariableNames(); @JsonProperty(BfConsts.PROP_TAGS) SortedSet<String> getTags(); @JsonProperty(BfConsts.PROP_VARIABLES) SortedMap<String, Variable> getVariables(); @JsonProperty(BfConsts.PROP_DESCRIPTION) void setDescription(String description); @JsonProperty(BfConsts.PROP_INSTANCE_NAME) void setInstanceName(String instanceName); @JsonProperty(BfConsts.PROP_LONG_DESCRIPTION) void setLongDescription(String longDescription); @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) void setOrderedVariableNames(@Nullable Iterable<String> orderedVariableNames); @JsonProperty(BfConsts.PROP_TAGS) void setTags(SortedSet<String> tags); @JsonProperty(BfConsts.PROP_VARIABLES) void setVariables(SortedMap<String, Variable> variables); @Override boolean equals(Object o); @Override int hashCode(); }
InstanceData { @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull public List<String> getOrderedVariableNames() { return _orderedVariableNames; } InstanceData(); @JsonProperty(BfConsts.PROP_DESCRIPTION) String getDescription(); @JsonProperty(BfConsts.PROP_INSTANCE_NAME) String getInstanceName(); @JsonProperty(BfConsts.PROP_LONG_DESCRIPTION) String getLongDescription(); @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) @Nonnull List<String> getOrderedVariableNames(); @JsonProperty(BfConsts.PROP_TAGS) SortedSet<String> getTags(); @JsonProperty(BfConsts.PROP_VARIABLES) SortedMap<String, Variable> getVariables(); @JsonProperty(BfConsts.PROP_DESCRIPTION) void setDescription(String description); @JsonProperty(BfConsts.PROP_INSTANCE_NAME) void setInstanceName(String instanceName); @JsonProperty(BfConsts.PROP_LONG_DESCRIPTION) void setLongDescription(String longDescription); @JsonProperty(BfConsts.PROP_ORDERED_VARIABLE_NAMES) void setOrderedVariableNames(@Nullable Iterable<String> orderedVariableNames); @JsonProperty(BfConsts.PROP_TAGS) void setTags(SortedSet<String> tags); @JsonProperty(BfConsts.PROP_VARIABLES) void setVariables(SortedMap<String, Variable> variables); @Override boolean equals(Object o); @Override int hashCode();  }