@@ -53,7 +53,7 @@ public void testNotInterrupted() throws InterruptedException, JsonProcessingExce
5353
5454 final Jedis jedis = TestUtils .createJedis (config );
5555 Assert .assertEquals ("In-flight list should have length one when running the job" ,
56- jedis .llen (inFlightKey (worker , queue )), ( Long ) 1L );
56+ 1L , jedis .llen (inFlightKey (worker , queue )));
5757 Assert .assertEquals ("Object on the in-flight list should be the first job" ,
5858 ObjectMapperFactory .get ().writeValueAsString (sleepJob ),
5959 jedis .lindex (inFlightKey (worker , queue ), 0 ));
@@ -63,7 +63,7 @@ public void testNotInterrupted() throws InterruptedException, JsonProcessingExce
6363 Assert .assertTrue ("The job should not be requeued after succesful processing" ,
6464 jedis .llen (JesqueUtils .createKey (config .getNamespace (), QUEUE , queue )) == 0L );
6565 Assert .assertEquals ("In-flight list should be empty when finishing a job" ,
66- jedis .llen (inFlightKey (worker , queue )), ( Long ) 0L );
66+ 0L , jedis .llen (inFlightKey (worker , queue )));
6767 }
6868
6969 @ Test
@@ -123,7 +123,7 @@ public void testJSONException() throws InterruptedException {
123123 TestUtils .stopWorker (worker , workerThread , false );
124124
125125 Assert .assertEquals ("In-flight list should have length zero if the worker failed during JSON deserialization" ,
126- jedis .llen (inFlightKey (worker , queue )), ( Long ) 0L );
126+ 0L , jedis .llen (inFlightKey (worker , queue )));
127127 }
128128
129129 private static String inFlightKey (final Worker worker , final String queue ) {
0 commit comments