/** * {@inheritDoc} * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals( Object obj ) { if (obj == this) return true; if (this.getClass().isInstance(obj)) { AccessQueryRequest that = (AccessQueryRequest)obj; if (this.hashCode() != that.hashCode()) return false; if (!this.workspace().equals(that.workspace())) return false; if (!this.selectorName().equals(that.selectorName())) return false; if (!this.limit().equals(that.limit())) return false; if (!this.andedConstraints().equals(that.andedConstraints())) return false; if (!this.resultColumns().equals(that.resultColumns())) return false; if (!this.variables().equals(that.variables())) return false; return true; } return false; }
protected void assertNextRequestAccessQuery( String workspaceName, String tableName, Columns columns, Limit limit, Constraint... andedConstraints ) { Request request = executedRequests.poll(); assertThat(request, is(instanceOf(AccessQueryRequest.class))); AccessQueryRequest access = (AccessQueryRequest)request; assertThat(access.workspace(), is(workspaceName)); assertThat(access.selectorName().name(), is(tableName)); assertThat(access.resultColumns(), is(columns)); assertThat(access.limit(), is(limit)); assertThat(access.andedConstraints(), is(Arrays.asList(andedConstraints))); }