@Override public boolean equals(Object o, boolean exact) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TypeFilterImpl that = (TypeFilterImpl) o; if (!type.equals(that.type)) return false; if (filter != null ? !filter.equals(that.filter, exact) : that.filter != null) return false; return true; }
public boolean equals(Object o, boolean exact) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ObjectQueryImpl that = (ObjectQueryImpl) o; if (allowPartialResults != that.allowPartialResults) return false; if (filter != null ? !filter.equals(that.filter, exact) : that.filter != null) return false; return paging != null ? paging.equals(that.paging, exact) : that.paging == null; }
@Override public boolean equals(Object o, boolean exact) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ExistsFilterImpl that = (ExistsFilterImpl) o; if (!fullPath.equals(that.fullPath, exact)) return false; if (exact) { if (definition != null ? !definition.equals(that.definition) : that.definition != null) return false; } return filter != null ? filter.equals(that.filter, exact) : that.filter == null; }
@Override public boolean equals(Object obj, boolean exact) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; LogicalFilterImpl other = (LogicalFilterImpl) obj; if (conditions != null) { if (conditions.size() != other.conditions.size()) { return false; } for (int i = 0; i < conditions.size(); i++) { ObjectFilter of1 = this.conditions.get(i); ObjectFilter of2 = other.conditions.get(i); if (!of1.equals(of2, exact)) { return false; } } } return true; }
ObjectFilter filterExpectedParsed = prismContext.getQueryConverter().createObjectFilter(UserType.class, filterExpected); assertTrue("Filters differ", filterExpectedParsed.equals(filterFromRepoParsed, false));