@@ -159,7 +159,7 @@ public class LoggingHandlerTest {
159159 .append ("com.google.cloud.logging.LoggingHandler.synchronicity=SYNC" )
160160 .append (System .lineSeparator ())
161161 .toString ();
162- private static final WriteOption [] DEFAULT_OPTION =
162+ private static final WriteOption [] DEFAULT_OPTIONS =
163163 new WriteOption [] {WriteOption .logName (LOG_NAME ), WriteOption .resource (DEFAULT_RESOURCE )};
164164
165165 private Logging logging ;
@@ -214,31 +214,31 @@ private static LogRecord newLogRecord(Level level, String message) {
214214 public void testPublishLevels () {
215215 EasyMock .expect (options .getProjectId ()).andReturn (PROJECT ).anyTimes ();
216216 EasyMock .expect (options .getService ()).andReturn (logging );
217- logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTION );
217+ logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTIONS );
218218 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
219- logging .writeAsync (ImmutableList .of (FINER_ENTRY ), DEFAULT_OPTION );
219+ logging .writeAsync (ImmutableList .of (FINER_ENTRY ), DEFAULT_OPTIONS );
220220 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
221- logging .writeAsync (ImmutableList .of (FINE_ENTRY ), DEFAULT_OPTION );
221+ logging .writeAsync (ImmutableList .of (FINE_ENTRY ), DEFAULT_OPTIONS );
222222 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
223- logging .writeAsync (ImmutableList .of (CONFIG_ENTRY ), DEFAULT_OPTION );
223+ logging .writeAsync (ImmutableList .of (CONFIG_ENTRY ), DEFAULT_OPTIONS );
224224 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
225- logging .writeAsync (ImmutableList .of (INFO_ENTRY ), DEFAULT_OPTION );
225+ logging .writeAsync (ImmutableList .of (INFO_ENTRY ), DEFAULT_OPTIONS );
226226 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
227- logging .writeAsync (ImmutableList .of (WARNING_ENTRY ), DEFAULT_OPTION );
227+ logging .writeAsync (ImmutableList .of (WARNING_ENTRY ), DEFAULT_OPTIONS );
228228 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
229- logging .writeAsync (ImmutableList .of (SEVERE_ENTRY ), DEFAULT_OPTION );
229+ logging .writeAsync (ImmutableList .of (SEVERE_ENTRY ), DEFAULT_OPTIONS );
230230 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
231- logging .writeAsync (ImmutableList .of (DEBUG_ENTRY ), DEFAULT_OPTION );
231+ logging .writeAsync (ImmutableList .of (DEBUG_ENTRY ), DEFAULT_OPTIONS );
232232 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
233- logging .writeAsync (ImmutableList .of (NOTICE_ENTRY ), DEFAULT_OPTION );
233+ logging .writeAsync (ImmutableList .of (NOTICE_ENTRY ), DEFAULT_OPTIONS );
234234 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
235- logging .writeAsync (ImmutableList .of (ERROR_ENTRY ), DEFAULT_OPTION );
235+ logging .writeAsync (ImmutableList .of (ERROR_ENTRY ), DEFAULT_OPTIONS );
236236 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
237- logging .writeAsync (ImmutableList .of (CRITICAL_ENTRY ), DEFAULT_OPTION );
237+ logging .writeAsync (ImmutableList .of (CRITICAL_ENTRY ), DEFAULT_OPTIONS );
238238 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
239- logging .writeAsync (ImmutableList .of (ALERT_ENTRY ), DEFAULT_OPTION );
239+ logging .writeAsync (ImmutableList .of (ALERT_ENTRY ), DEFAULT_OPTIONS );
240240 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
241- logging .writeAsync (ImmutableList .of (EMERGENCY_ENTRY ), DEFAULT_OPTION );
241+ logging .writeAsync (ImmutableList .of (EMERGENCY_ENTRY ), DEFAULT_OPTIONS );
242242 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
243243 EasyMock .replay (options , logging );
244244 Handler handler = new LoggingHandler (LOG_NAME , options );
@@ -308,7 +308,7 @@ public void testReportFlushError() {
308308 EasyMock .expect (options .getProjectId ()).andReturn (PROJECT ).anyTimes ();
309309 EasyMock .expect (options .getService ()).andReturn (logging );
310310 RuntimeException ex = new RuntimeException ();
311- logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTION );
311+ logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTIONS );
312312 EasyMock .expectLastCall ().andThrow (ex );
313313 EasyMock .replay (options , logging );
314314 ErrorManager errorManager = EasyMock .createStrictMock (ErrorManager .class );
@@ -350,7 +350,7 @@ public void testFlushSize() {
350350 logging .writeAsync (
351351 ImmutableList .of (
352352 FINEST_ENTRY , FINER_ENTRY , FINE_ENTRY , CONFIG_ENTRY , INFO_ENTRY , WARNING_ENTRY ),
353- DEFAULT_OPTION );
353+ DEFAULT_OPTIONS );
354354 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
355355 EasyMock .replay (options , logging );
356356 LoggingHandler handler = new LoggingHandler (LOG_NAME , options );
@@ -372,7 +372,7 @@ public void testFlushLevel() {
372372 logging .writeAsync (
373373 ImmutableList .of (
374374 FINEST_ENTRY , FINER_ENTRY , FINE_ENTRY , CONFIG_ENTRY , INFO_ENTRY , WARNING_ENTRY ),
375- DEFAULT_OPTION );
375+ DEFAULT_OPTIONS );
376376 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
377377 EasyMock .replay (options , logging );
378378 LoggingHandler handler = new LoggingHandler (LOG_NAME , options );
@@ -417,7 +417,7 @@ public void testSyncWrite() {
417417 public void testAddHandler () {
418418 EasyMock .expect (options .getProjectId ()).andReturn (PROJECT ).anyTimes ();
419419 EasyMock .expect (options .getService ()).andReturn (logging );
420- logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTION );
420+ logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTIONS );
421421 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
422422 EasyMock .replay (options , logging );
423423 LoggingHandler handler = new LoggingHandler (LOG_NAME , options ) {
@@ -480,7 +480,7 @@ public void testPropertiesFile() throws IOException, InterruptedException {
480480 public void testClose () throws Exception {
481481 EasyMock .expect (options .getProjectId ()).andReturn (PROJECT ).anyTimes ();
482482 EasyMock .expect (options .getService ()).andReturn (logging );
483- logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTION );
483+ logging .writeAsync (ImmutableList .of (FINEST_ENTRY ), DEFAULT_OPTIONS );
484484 EasyMock .expectLastCall ().andReturn (ApiFutures .immediateFuture (null ));
485485 logging .close ();
486486 EasyMock .expectLastCall ().once ();
0 commit comments