test_class.declarator: commandExecutor
test_class.modifier: @Mock
test_class.original_string: @Mock
    RedisCommandExecutor commandExecutor;
test_class.type: RedisCommandExecutor
test_class.var_name: commandExecutor
test_class.declarator: commandResult
test_class.modifier: @Mock
test_class.original_string: @Mock
    RedisCommandResult commandResult;
test_class.type: RedisCommandResult
test_class.var_name: commandResult
test_class.declarator: redisClient
test_class.original_string: RedisClient redisClient;
test_class.type: RedisClient
test_class.var_name: redisClient
test_class.file: imcache-redis/src/test/java/com/cetsoft/imcache/redis/client/RedisClientTest.java
test_class.identifier: RedisClientTest
test_case.body: @Test
    public void flushdb() throws ConnectionException, IOException {
      doReturn("OK").when(commandResult).getStatus();
      redisClient.flushdb();
      verify(redisClient).runVoidCommand(RedisCommands.FLUSHDB);
      verify(commandExecutor).execute(RedisCommands.FLUSHDB);
    }
test_case.class_method_signature: RedisClientTest.flushdb()
test_case.full_signature: @Test public void flushdb()
test_case.identifier: flushdb
test_case.invocations: getStatus when doReturn flushdb runVoidCommand verify execute verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void flushdb()
focal_class.declarator: STATUS_OK = "OK"
focal_class.modifier: private static final
focal_class.original_string: private static final String STATUS_OK = "OK";
focal_class.type: String
focal_class.var_name: STATUS_OK
focal_class.declarator: commandResult
focal_class.modifier: final
focal_class.original_string: final CommandResult commandResult;
focal_class.type: CommandResult
focal_class.var_name: commandResult
focal_class.declarator: commandExecutor
focal_class.modifier: final
focal_class.original_string: final CommandExecutor commandExecutor;
focal_class.type: CommandExecutor
focal_class.var_name: commandExecutor
focal_class.declarator: transaction = new RedisTransaction()
focal_class.modifier: final
focal_class.original_string: final Transaction transaction = new RedisTransaction();
focal_class.type: Transaction
focal_class.var_name: transaction
focal_class.file: imcache-redis/src/main/java/com/cetsoft/imcache/redis/client/RedisClient.java
focal_class.identifier: RedisClient
focal_class.interfaces: implements Client
focal_class.class_method_signature: RedisClient.RedisClient(final RedisCommandExecutor redisCommandExecutor,
        final RedisCommandResult redisCommandResult)
focal_class.full_signature:   RedisClient(final RedisCommandExecutor redisCommandExecutor,
        final RedisCommandResult redisCommandResult)
focal_class.identifier: RedisClient
focal_class.parameters: (final RedisCommandExecutor redisCommandExecutor,
        final RedisCommandResult redisCommandResult)
focal_class.signature:  RedisClient(final RedisCommandExecutor redisCommandExecutor,
        final RedisCommandResult redisCommandResult)
focal_class.class_method_signature: RedisClient.RedisClient(final Connection connection)
focal_class.full_signature: public  RedisClient(final Connection connection)
focal_class.identifier: RedisClient
focal_class.modifiers: public
focal_class.parameters: (final Connection connection)
focal_class.signature:  RedisClient(final Connection connection)
focal_class.class_method_signature: RedisClient.RedisClient()
focal_class.full_signature: public  RedisClient()
focal_class.identifier: RedisClient
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RedisClient()
focal_class.class_method_signature: RedisClient.RedisClient(final String host)
focal_class.full_signature: public  RedisClient(final String host)
focal_class.identifier: RedisClient
focal_class.modifiers: public
focal_class.parameters: (final String host)
focal_class.signature:  RedisClient(final String host)
focal_class.class_method_signature: RedisClient.RedisClient(final String host, final int port)
focal_class.full_signature: public  RedisClient(final String host, final int port)
focal_class.identifier: RedisClient
focal_class.modifiers: public
focal_class.parameters: (final String host, final int port)
focal_class.signature:  RedisClient(final String host, final int port)
focal_class.class_method_signature: RedisClient.runVoidCommand(final ByteCommand command, final byte[]... args)
focal_class.full_signature: protected void runVoidCommand(final ByteCommand command, final byte[]... args)
focal_class.identifier: runVoidCommand
focal_class.modifiers: protected
focal_class.parameters: (final ByteCommand command, final byte[]... args)
focal_class.return: void
focal_class.signature: void runVoidCommand(final ByteCommand command, final byte[]... args)
focal_class.class_method_signature: RedisClient.ping()
focal_class.full_signature: @Override public void ping()
focal_class.identifier: ping
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void ping()
focal_class.class_method_signature: RedisClient.set(final byte[] key, final byte[] value)
focal_class.full_signature: @Override public void set(final byte[] key, final byte[] value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (final byte[] key, final byte[] value)
focal_class.return: void
focal_class.signature: void set(final byte[] key, final byte[] value)
focal_class.class_method_signature: RedisClient.set(final byte[] key, final byte[] value, final long expiryInMillis)
focal_class.full_signature: @Override public void set(final byte[] key, final byte[] value, final long expiryInMillis)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (final byte[] key, final byte[] value, final long expiryInMillis)
focal_class.return: void
focal_class.signature: void set(final byte[] key, final byte[] value, final long expiryInMillis)
focal_class.class_method_signature: RedisClient.longToBytes(final long longToBeConverted)
focal_class.full_signature: public byte[] longToBytes(final long longToBeConverted)
focal_class.identifier: longToBytes
focal_class.modifiers: public
focal_class.parameters: (final long longToBeConverted)
focal_class.return: byte[]
focal_class.signature: byte[] longToBytes(final long longToBeConverted)
focal_class.class_method_signature: RedisClient.get(final byte[] key)
focal_class.full_signature: @Override public byte[] get(final byte[] key)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (final byte[] key)
focal_class.return: byte[]
focal_class.signature: byte[] get(final byte[] key)
focal_class.class_method_signature: RedisClient.expire(final byte[] key)
focal_class.full_signature: @Override public byte[] expire(final byte[] key)
focal_class.identifier: expire
focal_class.modifiers: @Override public
focal_class.parameters: (final byte[] key)
focal_class.return: byte[]
focal_class.signature: byte[] expire(final byte[] key)
focal_class.class_method_signature: RedisClient.flushdb()
focal_class.full_signature: @Override public void flushdb()
focal_class.identifier: flushdb
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flushdb()
focal_class.class_method_signature: RedisClient.dbsize()
focal_class.full_signature: @Override public int dbsize()
focal_class.identifier: dbsize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int dbsize()
focal_method.body: @Override
    public void flushdb() throws ConnectionException, IOException {
      runVoidCommand(RedisCommands.FLUSHDB);
    }
focal_method.class_method_signature: RedisClient.flushdb()
focal_method.full_signature: @Override public void flushdb()
focal_method.identifier: flushdb
focal_method.invocations: runVoidCommand
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void flushdb()