我只想使用EasyMock为行 filter = new Simple(A.ATTRIBUTE_actIVE,Operator.EQUALS,Boolean.TRUE); 编写Expect语句。
//SingleLimit.java
private Limitation filter;
protected final Limitation getBaseLimitation() {
Validate.notNull(type);
GroupClass Group = new GroupClass(GroupTypeclass.SELECTOR);
if (activatable.class.isAssignableFrom(typelisted)) {
if (A.class.isAssignableFrom(type)) {
//expect statement for below line
filter = new Simple(A.ATTRIBUTE_actIVE,Operator.EQUALS,Boolean.TRUE);
}
}
}
//Simple.java
public class Simple implements Serializable,Limitation
{
public Simple(String path,Operator operator,Object value) {
this(path,operator,new Object[]{value});
}
}
任何帮助将不胜感激