@Test public void shouldReturnProductName() throws Exception { Product product = make(a(ProductBuilder.defaultProduct)); assertThat(product.getName(), is("Primary Name Tablet strength mg")); }
@JsonIgnore public String getName() { return (getPrimaryName() == null ? "" : getPrimaryName()) + " " + (getForm() == null || getForm().getCode() == null ? "" : getForm().getCode()) + " " + (getStrength() == null ? "" : getStrength()) + " " + (getDosageUnit() == null || getDosageUnit().getCode() == null ? "" : getDosageUnit().getCode()); }
Product extends BaseModel implements Importable { @JsonIgnore public String getName() { return (getPrimaryName() == null ? "" : getPrimaryName()) + " " + (getForm() == null || getForm().getCode() == null ? "" : getForm().getCode()) + " " + (getStrength() == null ? "" : getStrength()) + " " + (getDosageUnit() == null || getDosageUnit().getCode() == null ? "" : getDosageUnit().getCode()); } }
Product extends BaseModel implements Importable { @JsonIgnore public String getName() { return (getPrimaryName() == null ? "" : getPrimaryName()) + " " + (getForm() == null || getForm().getCode() == null ? "" : getForm().getCode()) + " " + (getStrength() == null ? "" : getStrength()) + " " + (getDosageUnit() == null || getDosageUnit().getCode() == null ? "" : getDosageUnit().getCode()); }  }
Product extends BaseModel implements Importable { @JsonIgnore public String getName() { return (getPrimaryName() == null ? "" : getPrimaryName()) + " " + (getForm() == null || getForm().getCode() == null ? "" : getForm().getCode()) + " " + (getStrength() == null ? "" : getStrength()) + " " + (getDosageUnit() == null || getDosageUnit().getCode() == null ? "" : getDosageUnit().getCode()); }  void validate(); @JsonIgnore String getName(); }
Product extends BaseModel implements Importable { @JsonIgnore public String getName() { return (getPrimaryName() == null ? "" : getPrimaryName()) + " " + (getForm() == null || getForm().getCode() == null ? "" : getForm().getCode()) + " " + (getStrength() == null ? "" : getStrength()) + " " + (getDosageUnit() == null || getDosageUnit().getCode() == null ? "" : getDosageUnit().getCode()); }  void validate(); @JsonIgnore String getName();  }