@Test(expected = IllegalArgumentException.class) public void should_fail_with_null_queries() { new Changeset().setQueries(null); }
public void setQueries(Collection<String> queries) { checkArgument(queries != null, "Queries cannot be null"); checkArgument(queries.size() > 0, "At least one query must be defined"); this.queries = queries; setChecksum(checksum(queries)); }
Changeset { public void setQueries(Collection<String> queries) { checkArgument(queries != null, "Queries cannot be null"); checkArgument(queries.size() > 0, "At least one query must be defined"); this.queries = queries; setChecksum(checksum(queries)); } }
Changeset { public void setQueries(Collection<String> queries) { checkArgument(queries != null, "Queries cannot be null"); checkArgument(queries.size() > 0, "At least one query must be defined"); this.queries = queries; setChecksum(checksum(queries)); }  }
Changeset { public void setQueries(Collection<String> queries) { checkArgument(queries != null, "Queries cannot be null"); checkArgument(queries.size() > 0, "At least one query must be defined"); this.queries = queries; setChecksum(checksum(queries)); }  @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 setQueries(Collection<String> queries) { checkArgument(queries != null, "Queries cannot be null"); checkArgument(queries.size() > 0, "At least one query must be defined"); this.queries = queries; setChecksum(checksum(queries)); }  @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();  }