@Test public void testToString() { String expectedResult = ReflectionToStringBuilder.toString(restaurant); String actualResult = restaurant.toString(); Assert.assertTrue(actualResult.contains(expectedResult)); }
@Override public String toString() { return ReflectionToStringBuilder.toString(this); }
Restaurant extends Entity { @Override public String toString() { return ReflectionToStringBuilder.toString(this); } }
Restaurant extends Entity { @Override public String toString() { return ReflectionToStringBuilder.toString(this); } Restaurant(); private  Restaurant(Builder builder); }
Restaurant extends Entity { @Override public String toString() { return ReflectionToStringBuilder.toString(this); } Restaurant(); private  Restaurant(Builder builder); String getServerID(); void setServerID(String serverID); BigDecimal getFoodAmount(); void setFoodAmount(BigDecimal foodAmount); BigDecimal getBeverageAmount(); void setBeverageAmount(BigDecimal beverageAmount); BigDecimal getTaxAmount(); void setTaxAmount(BigDecimal taxAmount); BigDecimal getTipAmount(); void setTipAmount(BigDecimal tipAmount); @Override String toString(); }
Restaurant extends Entity { @Override public String toString() { return ReflectionToStringBuilder.toString(this); } Restaurant(); private  Restaurant(Builder builder); String getServerID(); void setServerID(String serverID); BigDecimal getFoodAmount(); void setFoodAmount(BigDecimal foodAmount); BigDecimal getBeverageAmount(); void setBeverageAmount(BigDecimal beverageAmount); BigDecimal getTaxAmount(); void setTaxAmount(BigDecimal taxAmount); BigDecimal getTipAmount(); void setTipAmount(BigDecimal tipAmount); @Override String toString();  }