use of io.aklivity.zilla.runtime.engine.EngineStats in project zilla by aklivity.
the class ClientStatsIT method shouldSendAndReceiveData.
@Test
@Configuration("client.host.json")
@Specification({ "${client}/client.and.server.sent.data.multiple.frames/client", "${server}/client.and.server.sent.data.multiple.frames/server" })
public void shouldSendAndReceiveData() throws Exception {
k3po.finish();
EngineStats stats = engine.stats("test", "app0");
assertThat(stats.initialBytes(), equalTo(26L));
assertThat(stats.replyBytes(), equalTo(26L));
}
use of io.aklivity.zilla.runtime.engine.EngineStats in project zilla by aklivity.
the class ServerStatsIT method shouldReceiveNonEmptyMessage.
@Test
@Configuration("server.when.json")
@Specification({ "${net}/non.empty/request", "${app}/non.empty/server" })
public void shouldReceiveNonEmptyMessage() throws Exception {
k3po.finish();
EngineStats stats = engine.stats("test", "net0");
assertEquals(0, stats.initialBytes());
assertEquals(19, stats.replyBytes());
// assertEquals(0, stats.initialMessages());
// assertEquals(1, stats.replyMessages());
}
Aggregations