@Test(expected = IllegalArgumentException.class) public void should_fail_with_null_checksum() { new Changeset().setChecksum(null); }
public void setChecksum(String checksum) { checkArgument(checksum != null, "Checksum cannot be null"); this.checksum = checksum; }
Changeset { public void setChecksum(String checksum) { checkArgument(checksum != null, "Checksum cannot be null"); this.checksum = checksum; } }
Changeset { public void setChecksum(String checksum) { checkArgument(checksum != null, "Checksum cannot be null"); this.checksum = checksum; }  }
Changeset { public void setChecksum(String checksum) { checkArgument(checksum != null, "Checksum cannot be null"); this.checksum = checksum; }  @XmlAttribute(name = "id", required = true) String getId(); void setId(String id); @XmlAttribute(name = "author", required = true) String getAuthor(); void setAuthor(String author); @XmlElement(name = "query", required = true) Collection<String> getQueries(); void setQueries(Collection<String> queries); @XmlTransient String getChecksum(); void setChecksum(String checksum); @XmlTransient Collection<String> getExecutionsContexts(); void setContexts(String executionsContexts); @XmlAttribute(name = "run-on-change", required = false) boolean isRunOnChange(); void setRunOnChange(boolean runOnChange); @XmlAttribute(name = "run-always", required = false) boolean isRunAlways(); void setRunAlways(boolean runAlways); @XmlElement(name = "precondition", required = false) Precondition getPrecondition(); void setPrecondition(Precondition precondition); @XmlElement(name = "postcondition", required = false) Postcondition getPostcondition(); void setPostcondition(Postcondition postcondition); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Changeset { public void setChecksum(String checksum) { checkArgument(checksum != null, "Checksum cannot be null"); this.checksum = checksum; }  @XmlAttribute(name = "id", required = true) String getId(); void setId(String id); @XmlAttribute(name = "author", required = true) String getAuthor(); void setAuthor(String author); @XmlElement(name = "query", required = true) Collection<String> getQueries(); void setQueries(Collection<String> queries); @XmlTransient String getChecksum(); void setChecksum(String checksum); @XmlTransient Collection<String> getExecutionsContexts(); void setContexts(String executionsContexts); @XmlAttribute(name = "run-on-change", required = false) boolean isRunOnChange(); void setRunOnChange(boolean runOnChange); @XmlAttribute(name = "run-always", required = false) boolean isRunAlways(); void setRunAlways(boolean runAlways); @XmlElement(name = "precondition", required = false) Precondition getPrecondition(); void setPrecondition(Precondition precondition); @XmlElement(name = "postcondition", required = false) Postcondition getPostcondition(); void setPostcondition(Postcondition postcondition); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }