use of com.navercorp.pinpoint.profiler.context.id.DefaultAsyncTraceId in project pinpoint by naver.
the class DefaultAsyncTraceIdTest method nextAsyncSequence.
@Test
public void nextAsyncSequence() throws Exception {
long agentStartTime = System.currentTimeMillis();
TraceId traceId = new DefaultTraceId("testAgentId", agentStartTime, 0);
AsyncTraceId asyncTraceId = new DefaultAsyncTraceId(traceId, 0, agentStartTime + 10);
Assert.assertEquals(asyncTraceId.nextAsyncSequence(), 1);
Assert.assertEquals(asyncTraceId.nextAsyncSequence(), 2);
Assert.assertEquals(asyncTraceId.nextAsyncSequence(), 3);
}
Aggregations