@Test public void testWhenCtorWithListWithElementThenHasResultIsTrue() { SubnetSelectionResult subnetSelectionResult = new SubnetSelectionResult(List.of(new CloudSubnet())); assertTrue(subnetSelectionResult.hasResult()); }
public boolean hasResult() { return StringUtils.isEmpty(errorMessage) && !result.isEmpty(); }
SubnetSelectionResult { public boolean hasResult() { return StringUtils.isEmpty(errorMessage) && !result.isEmpty(); } }
SubnetSelectionResult { public boolean hasResult() { return StringUtils.isEmpty(errorMessage) && !result.isEmpty(); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); }
SubnetSelectionResult { public boolean hasResult() { return StringUtils.isEmpty(errorMessage) && !result.isEmpty(); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); boolean hasError(); boolean hasResult(); List<CloudSubnet> getResult(); String getErrorMessage(); @Override String toString(); }
SubnetSelectionResult { public boolean hasResult() { return StringUtils.isEmpty(errorMessage) && !result.isEmpty(); } SubnetSelectionResult(List<CloudSubnet> result);  SubnetSelectionResult(String errorMessage); boolean hasError(); boolean hasResult(); List<CloudSubnet> getResult(); String getErrorMessage(); @Override String toString();  }