@@ -133,7 +133,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
133
133
@ Test
134
134
@ Order (5 )
135
135
void testNotContainedInField () {
136
- String [] containArray = new String [] { "Roti Maker" , "kids dress" };
136
+ String [] containArray = new String []{ "Roti Maker" , "kids dress" };
137
137
query .notContainedIn ("title" , containArray );
138
138
query .find (new QueryResultsCallBack () {
139
139
@ Override
@@ -151,7 +151,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
151
151
@ Test
152
152
@ Order (6 )
153
153
void testContainedInField () {
154
- String [] containArray = new String [] { "Roti Maker" , "kids dress" };
154
+ String [] containArray = new String []{ "Roti Maker" , "kids dress" };
155
155
query .containedIn ("title" , containArray );
156
156
query .find (new QueryResultsCallBack () {
157
157
@ Override
@@ -262,7 +262,7 @@ void testEntriesWithOr() {
262
262
query .lessThan ("price" , 90 );
263
263
264
264
Query subQuery = ct .query ();
265
- subQuery .containedIn ("discount" , new Integer [] { 20 , 45 });
265
+ subQuery .containedIn ("discount" , new Integer []{ 20 , 45 });
266
266
267
267
ArrayList <Query > array = new ArrayList <>();
268
268
array .add (query );
@@ -294,7 +294,7 @@ void testEntriesWithAnd() {
294
294
query .lessThan ("price" , 90 );
295
295
296
296
Query subQuery = ct .query ();
297
- subQuery .containedIn ("discount" , new Integer [] { 20 , 45 });
297
+ subQuery .containedIn ("discount" , new Integer []{ 20 , 45 });
298
298
299
299
ArrayList <Query > array = new ArrayList <>();
300
300
array .add (query );
@@ -404,7 +404,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
404
404
String previous = entries .get (i ).getTitle (); // get first string
405
405
String next = entries .get (i + 1 ).getTitle (); // get second string
406
406
if (previous .compareTo (next ) < 0 ) { // compare both if less than Zero then Ascending else
407
- // descending
407
+ // descending
408
408
Assertions .assertTrue (true );
409
409
} else {
410
410
Assertions .fail ("expected descending, found ascending" );
@@ -430,7 +430,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
430
430
String previous = entries .get (i ).getTitle (); // get first string
431
431
String next = entries .get (i + 1 ).getTitle (); // get second string
432
432
if (previous .compareTo (next ) < 0 ) { // compare both if less than Zero then Ascending else
433
- // descending
433
+ // descending
434
434
Assertions .fail ("expected descending, found ascending" );
435
435
} else {
436
436
Assertions .assertTrue (true );
@@ -480,7 +480,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
480
480
@ Test
481
481
@ Order (22 )
482
482
void testOnly () {
483
- query .only (new String [] { "price" });
483
+ query .only (new String []{ "price" });
484
484
query .find (new QueryResultsCallBack () {
485
485
@ Override
486
486
public void onCompletion (ResponseType responseType , QueryResult queryresult , Error error ) {
@@ -497,7 +497,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
497
497
@ Test
498
498
@ Order (23 )
499
499
void testExcept () {
500
- query .except (new String [] { "price" });
500
+ query .except (new String []{ "price" });
501
501
query .find (new QueryResultsCallBack () {
502
502
@ Override
503
503
public void onCompletion (ResponseType responseType , QueryResult queryresult , Error error ) {
@@ -583,7 +583,7 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
583
583
@ Test
584
584
@ Order (28 )
585
585
void testTags () {
586
- query .tags (new String [] { "pink" });
586
+ query .tags (new String []{ "pink" });
587
587
query .find (new QueryResultsCallBack () {
588
588
@ Override
589
589
public void onCompletion (ResponseType responseType , QueryResult queryresult , Error error ) {
@@ -877,17 +877,4 @@ public void onCompletion(ResponseType responseType, QueryResult queryresult, Err
877
877
logger .info ("passed..." );
878
878
}
879
879
880
- // @Test @Order(53)
881
- // void testIncludeBranchAPI() throws IllegalAccessException {
882
- // Dotenv dotenv = Dotenv.load();
883
- // String apiKey = dotenv.get("apiKey");
884
- // String deliveryToken = dotenv.get("deliveryToken");
885
- // String env = dotenv.get("env");
886
- // Config config = new Config();
887
- // config.setHost("development");
888
- // Stack stack = Contentstack.stack(apiKey, deliveryToken, env, config);
889
- // query = stack.contentType("menu").query();
890
- // query.includeBranch().find(null);
891
- // }
892
-
893
880
}
0 commit comments