use of com.hederahashgraph.api.proto.java.NetworkGetExecutionTimeResponse in project hedera-services by hashgraph.
the class GetExecTimeAnswerTest method getsCostAnswerResponse.
@Test
void getsCostAnswerResponse() throws Throwable {
// setup:
Query query = validQuery(COST_ANSWER, fee);
// when:
Response response = subject.responseGiven(query, view, OK, fee);
// then:
assertTrue(response.hasNetworkGetExecutionTime());
NetworkGetExecutionTimeResponse opResponse = response.getNetworkGetExecutionTime();
assertEquals(OK, opResponse.getHeader().getNodeTransactionPrecheckCode());
assertEquals(COST_ANSWER, opResponse.getHeader().getResponseType());
assertEquals(fee, opResponse.getHeader().getCost());
assertEquals(OK, subject.checkValidity(query, view));
}
Aggregations