Skip to content

Commit f4df5a0

Browse files
committed
Add test prefix to testmethod, minor change in comment
1 parent 86c1e02 commit f4df5a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/elasticsearch/index/query/IdsQueryBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class IdsQueryBuilderTest extends BaseQueryTestCase<IdsQueryBuilder> {
4040
* @throws IOException
4141
*/
4242
@Test(expected=QueryParsingException.class)
43-
public void idsNotProvided() throws IOException {
43+
public void testIdsNotProvided() throws IOException {
4444
String noIdsFieldQuery = "{\"ids\" : { \"type\" : \"my_type\" }";
4545
XContentParser parser = XContentFactory.xContent(noIdsFieldQuery).createParser(noIdsFieldQuery);
4646
QueryParseContext context = createContext();
@@ -62,7 +62,7 @@ protected void assertLuceneQuery(IdsQueryBuilder queryBuilder, Query query, Quer
6262
assertThat(query, is(instanceOf(TermsQuery.class)));
6363
TermsQuery termQuery = (TermsQuery) query;
6464
assertThat(termQuery.getBoost(), is(testQuery.boost()));
65-
// because internals of TermsFilter are well hidden, check string representation
65+
// because internals of TermsQuery are well hidden, check string representation
6666
String[] parts = termQuery.toString().split(" ");
6767
assertThat(parts.length, is(queryBuilder.ids().size() * queryBuilder.types().size()));
6868
assertThat(parts[0].substring(0, parts[0].indexOf(":")), is(UidFieldMapper.NAME));

0 commit comments

Comments
 (0)