Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 6cc0f51

Browse files
authored
Cleanup tests (#184)
* fix: Use String.contains() instead of RegExp matching for finding a specific term * QueryTest: Correct assert{,Array,Not}Equals parameter ordering * QueryTest.analyticsTags: Compare built query to result of getter as in other tests * QueryTest: Remove unneccessary "test_" prefix * QueryTest: Use Integer.valueOf() instead of new Integer() * QueryTest: Check query string content in every test * IndexTest: Remove unneccessary "test" prefix * IndexTest: Use getIndex instead of deprecated initIndex * IndexTest: Use diamond operator * IndexTest: Use Collections.singletonList instead of Arrays.asList with only one element * BrowseIteratorTest: Remove unneccessary "test" prefix * PlacesClientTest: Remove unneccessary "test" prefix * PlacesQueryTest: Remove unneccessary "test_" prefix * PlacesQueryTest: Use Integer.valueOf() instead of new Integer() * PlacesQueryTest: Correct assert{,Array,Not}Equals parameter ordering * PlacesQueryTest: When possible, inline query2 and rename query1 to query * QueryTest: When possible, inline query2 and rename query1 to query
1 parent 294ba4c commit 6cc0f51

File tree

5 files changed

+546
-589
lines changed

5 files changed

+546
-589
lines changed

algoliasearch/src/test/java/com/algolia/search/saas/BrowseIteratorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void tearDown() throws Exception {
7676
}
7777

7878
@Test
79-
public void testNominal() throws Exception {
79+
public void nominal() throws Exception {
8080
Query query = new Query();
8181
AssertBrowseHandler handler = new AssertBrowseHandler() {
8282
@Override
@@ -93,7 +93,7 @@ void doHandleBatch(BrowseIterator iterator, JSONObject result, AlgoliaException
9393
}
9494

9595
@Test
96-
public void testCancel() throws Exception {
96+
public void cancel() throws Exception {
9797
Query query = new Query();
9898
AssertBrowseHandler handler = new AssertBrowseHandler() {
9999
@Override

0 commit comments

Comments
 (0)