@Test(expected=InvalidQueryException.class) public void testSetPredicate_invalid() throws Exception { HostGroupInfo group = new HostGroupInfo("test-name"); group.setPredicate("=thisIsNotAPredicate"); }
public void setPredicate(String predicateString) throws InvalidQueryException { this.predicate = predicateCompiler.compile(predicateString); this.predicateString = predicateString; }
HostGroupInfo { public void setPredicate(String predicateString) throws InvalidQueryException { this.predicate = predicateCompiler.compile(predicateString); this.predicateString = predicateString; } }
HostGroupInfo { public void setPredicate(String predicateString) throws InvalidQueryException { this.predicate = predicateCompiler.compile(predicateString); this.predicateString = predicateString; } HostGroupInfo(String hostGroupName); }
HostGroupInfo { public void setPredicate(String predicateString) throws InvalidQueryException { this.predicate = predicateCompiler.compile(predicateString); this.predicateString = predicateString; } HostGroupInfo(String hostGroupName); String getHostGroupName(); Collection<String> getHostNames(); int getRequestedHostCount(); void addHost(String hostName); void addHosts(Collection<String> hosts); void setRequestedCount(int num); void setConfiguration(Configuration configuration); Configuration getConfiguration(); void setPredicate(String predicateString); Predicate getPredicate(); String getPredicateString(); void addHostRackInfo(String host, String rackInfo); Map<String, String> getHostRackInfo(); void removeHost(String hostname); }
HostGroupInfo { public void setPredicate(String predicateString) throws InvalidQueryException { this.predicate = predicateCompiler.compile(predicateString); this.predicateString = predicateString; } HostGroupInfo(String hostGroupName); String getHostGroupName(); Collection<String> getHostNames(); int getRequestedHostCount(); void addHost(String hostName); void addHosts(Collection<String> hosts); void setRequestedCount(int num); void setConfiguration(Configuration configuration); Configuration getConfiguration(); void setPredicate(String predicateString); Predicate getPredicate(); String getPredicateString(); void addHostRackInfo(String host, String rackInfo); Map<String, String> getHostRackInfo(); void removeHost(String hostname);  }