@Test public void testWhenCtorWithListWithElementThenHasErrorIsFalse() { SubnetSelectionResult subnetSelectionResult = new SubnetSelectionResult(List.of(new CloudSubnet())); assertFalse(subnetSelectionResult.hasError()); }
public boolean hasError() { return StringUtils.isNotEmpty(errorMessage); }
SubnetSelectionResult { public boolean hasError() { return StringUtils.isNotEmpty(errorMessage); } }
SubnetSelectionResult { public boolean hasError() { return StringUtils.isNotEmpty(errorMessage); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); }
SubnetSelectionResult { public boolean hasError() { return StringUtils.isNotEmpty(errorMessage); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); boolean hasError(); boolean hasResult(); List<CloudSubnet> getResult(); String getErrorMessage(); @Override String toString(); }
SubnetSelectionResult { public boolean hasError() { return StringUtils.isNotEmpty(errorMessage); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); boolean hasError(); boolean hasResult(); List<CloudSubnet> getResult(); String getErrorMessage(); @Override String toString();  }