Skip to content

Commit

Permalink
update renamed method assertThrows
Browse files Browse the repository at this point in the history
s/assertThrows/assertRequestBuilderThrows as per elastic#52582
  • Loading branch information
bpintea committed Mar 4, 2020
1 parent 33bcd3d commit 1058b72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.elasticsearch.xpack.sql.proto.Mode;

import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThrows;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertRequestBuilderThrows;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;

Expand Down Expand Up @@ -55,7 +55,7 @@ public void testSqlActionCurrentVersion() {
public void testSqlActionOutdatedVersion() {
SqlQueryRequestBuilder request = new SqlQueryRequestBuilder(client(), SqlQueryAction.INSTANCE)
.query("SELECT true").mode(randomFrom(Mode.CLI, Mode.JDBC)).version("1.2.3");
assertThrows(request, org.elasticsearch.action.ActionRequestValidationException.class);
assertRequestBuilderThrows(request, org.elasticsearch.action.ActionRequestValidationException.class);
}
}

0 comments on commit 1058b72

Please sign in to comment.