@Test public void testResultStatement() { final int position = 7; final String code = "return({'epoch': epoch});", expected = "{'epoch': "+position+"}"; QubicWriter qubicWriter = createQubicWriterWithPublishedQubicTransaction(code); OracleWriter oracleWriter = createOracleAndPublishResultStatement(qubicWriter, position); ResultStatement resultStatement = readResultStatement(oracleWriter.getID(), position); String assetMessage = "qubic ID: " + qubicWriter.getID() + ", oracle ID" + oracleWriter.getID(); assertEquals(assetMessage, expected, resultStatement.getContent()); }
public String getID() { return reader.getID(); }
OracleReader { public String getID() { return reader.getID(); } }
OracleReader { public String getID() { return reader.getID(); } OracleReader(String id); }
OracleReader { public String getID() { return reader.getID(); } OracleReader(String id); Statement read(StatementIAMIndex index); Statement read(List<Transaction> preload, StatementIAMIndex index); HashStatementReader getHashStatementReader(); ResultStatementReader getResultStatementReader(); String getID(); IAMReader getReader(); }
OracleReader { public String getID() { return reader.getID(); } OracleReader(String id); Statement read(StatementIAMIndex index); Statement read(List<Transaction> preload, StatementIAMIndex index); HashStatementReader getHashStatementReader(); ResultStatementReader getResultStatementReader(); String getID(); IAMReader getReader();  }