test_class.declarator: connection
test_class.modifier: @Mock
test_class.original_string: @Mock
    Connection connection;
test_class.type: Connection
test_class.var_name: connection
test_class.declarator: inputStream
test_class.modifier: @Mock
test_class.original_string: @Mock
    InputStream inputStream;
test_class.type: InputStream
test_class.var_name: inputStream
test_class.declarator: streamReader
test_class.original_string: RedisStreamReader streamReader;
test_class.type: RedisStreamReader
test_class.var_name: streamReader
test_class.declarator: commandResult
test_class.original_string: RedisCommandResult commandResult;
test_class.type: RedisCommandResult
test_class.var_name: commandResult
test_class.file: imcache-redis/src/test/java/com/cetsoft/imcache/redis/client/RedisCommandResultTest.java
test_class.identifier: RedisCommandResultTest
test_case.body: @Test
    public void getInt() throws ConnectionException, IOException {
      int value = 10;
      doReturn(value).when(streamReader).readInt();
      doReturn(RedisBytes.COLON_BYTE).when(streamReader).readByte();
      int actualValue = commandResult.getInt();
      assertEquals(value, actualValue);
    }
test_case.class_method_signature: RedisCommandResultTest.getInt()
test_case.full_signature: @Test public void getInt()
test_case.identifier: getInt
test_case.invocations: readInt when doReturn readByte when doReturn getInt assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getInt()
focal_class.declarator: connection
focal_class.modifier: private final
focal_class.original_string: private final Connection connection;
focal_class.type: Connection
focal_class.var_name: connection
focal_class.file: imcache-redis/src/main/java/com/cetsoft/imcache/redis/client/RedisCommandResult.java
focal_class.identifier: RedisCommandResult
focal_class.interfaces: implements CommandResult
focal_class.class_method_signature: RedisCommandResult.RedisCommandResult(final Connection connection)
focal_class.full_signature: public  RedisCommandResult(final Connection connection)
focal_class.identifier: RedisCommandResult
focal_class.modifiers: public
focal_class.parameters: (final Connection connection)
focal_class.signature:  RedisCommandResult(final Connection connection)
focal_class.class_method_signature: RedisCommandResult.getBytes()
focal_class.full_signature: @Override public byte[] getBytes()
focal_class.identifier: getBytes
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getBytes()
focal_class.class_method_signature: RedisCommandResult.getStatus()
focal_class.full_signature: @Override public String getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getStatus()
focal_class.class_method_signature: RedisCommandResult.getInt()
focal_class.full_signature: @Override public int getInt()
focal_class.identifier: getInt
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getInt()
focal_class.class_method_signature: RedisCommandResult.checkMessageType(final RedisStreamReader streamReader, final byte expectedByte)
focal_class.full_signature: protected void checkMessageType(final RedisStreamReader streamReader, final byte expectedByte)
focal_class.identifier: checkMessageType
focal_class.modifiers: protected
focal_class.parameters: (final RedisStreamReader streamReader, final byte expectedByte)
focal_class.return: void
focal_class.signature: void checkMessageType(final RedisStreamReader streamReader, final byte expectedByte)
focal_class.class_method_signature: RedisCommandResult.getStreamReader()
focal_class.full_signature: protected RedisStreamReader getStreamReader()
focal_class.identifier: getStreamReader
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: RedisStreamReader
focal_class.signature: RedisStreamReader getStreamReader()
focal_method.body: @Override
    public int getInt() throws ConnectionException, IOException {
      final RedisStreamReader streamReader = getStreamReader();
      checkMessageType(streamReader, RedisBytes.COLON_BYTE);
      return streamReader.readInt();
    }
focal_method.class_method_signature: RedisCommandResult.getInt()
focal_method.full_signature: @Override public int getInt()
focal_method.identifier: getInt
focal_method.invocations: getStreamReader checkMessageType readInt
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int getInt()