@@ -203,7 +203,7 @@ public void testErrorGracefulModeOff() {
203
203
@ Test
204
204
public void testReinitializeWithoutForcing () {
205
205
EppoClient firstInstance = initClient (DUMMY_FLAG_API_KEY );
206
- EppoClient secondInstance = new EppoClient .Builder (). apiKey (DUMMY_FLAG_API_KEY ).buildAndInit ();
206
+ EppoClient secondInstance = EppoClient .builder (DUMMY_FLAG_API_KEY ).buildAndInit ();
207
207
208
208
assertSame (firstInstance , secondInstance );
209
209
}
@@ -212,7 +212,7 @@ public void testReinitializeWithoutForcing() {
212
212
public void testReinitializeWitForcing () {
213
213
EppoClient firstInstance = initClient (DUMMY_FLAG_API_KEY );
214
214
EppoClient secondInstance =
215
- new EppoClient .Builder (). apiKey (DUMMY_FLAG_API_KEY ).forceReinitialize (true ).buildAndInit ();
215
+ EppoClient .builder (DUMMY_FLAG_API_KEY ).forceReinitialize (true ).buildAndInit ();
216
216
217
217
assertNotSame (firstInstance , secondInstance );
218
218
}
@@ -223,8 +223,7 @@ public void testPolling() {
223
223
EppoHttpClient httpClientSpy = spy (httpClient );
224
224
TestUtils .setBaseClientHttpClientOverrideField (httpClientSpy );
225
225
226
- new EppoClient .Builder ()
227
- .apiKey (DUMMY_FLAG_API_KEY )
226
+ EppoClient .builder (DUMMY_FLAG_API_KEY )
228
227
.pollingIntervalMs (20 )
229
228
.forceReinitialize (true )
230
229
.buildAndInit ();
@@ -300,8 +299,7 @@ private EppoClient initClient(String apiKey) {
300
299
mockAssignmentLogger = mock (AssignmentLogger .class );
301
300
mockBanditLogger = mock (BanditLogger .class );
302
301
303
- return new EppoClient .Builder ()
304
- .apiKey (apiKey )
302
+ return EppoClient .builder (apiKey )
305
303
.apiBaseUrl (Constants .appendApiPathToHost (TEST_HOST ))
306
304
.assignmentLogger (mockAssignmentLogger )
307
305
.banditLogger (mockBanditLogger )
@@ -314,8 +312,7 @@ private EppoClient initFailingGracefulClient(boolean isGracefulMode) {
314
312
mockAssignmentLogger = mock (AssignmentLogger .class );
315
313
mockBanditLogger = mock (BanditLogger .class );
316
314
317
- return new EppoClient .Builder ()
318
- .apiKey (DUMMY_FLAG_API_KEY )
315
+ return EppoClient .builder (DUMMY_FLAG_API_KEY )
319
316
.apiBaseUrl ("blag" )
320
317
.assignmentLogger (mockAssignmentLogger )
321
318
.banditLogger (mockBanditLogger )
0 commit comments