fix 2 test cases compile issue
This commit is contained in:
parent
3d8e2e27a2
commit
72da98fbf9
|
|
@ -0,0 +1 @@
|
|||
JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1JappR1
|
||||
|
|
@ -17,7 +17,7 @@ public class DataFileTest {
|
|||
|
||||
IndexMetaInfo info = null;
|
||||
for (int i = 0; i < 100; i++) {
|
||||
RequestSpan span = RequestSpan.newBuilder().setUserId("1").setApplicationId("app").build();
|
||||
RequestSpan span = RequestSpan.newBuilder().setUsername("1").setApplicationCode("app").build();
|
||||
|
||||
try {
|
||||
info = dataFile.write(new RequestSpanData(span));
|
||||
|
|
@ -27,7 +27,7 @@ public class DataFileTest {
|
|||
|
||||
RequestSpan newSpan = SpanDataBuilder.buildRequestSpan(dataFile.read(info.getOffset(), info.getLength()));
|
||||
|
||||
Assert.assertEquals("1", newSpan.getUserId());
|
||||
Assert.assertEquals("1", newSpan.getUsername());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ public class IndexOperatorTest {
|
|||
IndexMetaCollection collection = new IndexMetaCollection();
|
||||
for (int j = 0; j < 100; j++) {
|
||||
RequestSpan requestSpan =
|
||||
RequestSpan.newBuilder().setSpanType(1).setAddress(NetUtils.getLocalAddress().toString()).setApplicationId("1").setCallType("1").setLevelId(0)
|
||||
RequestSpan.newBuilder().setSpanType(1).setAddress(NetUtils.getLocalAddress().toString()).setApplicationCode("1").setCallType("1").setLevelId(0)
|
||||
.setProcessNo(19287).setStartDate(System.currentTimeMillis()).setTraceId(
|
||||
TraceId.newBuilder().addSegments(201611).addSegments(j).addSegments(8504828).addSegments(2277).addSegments(53).addSegments(3).build())
|
||||
.setUserId("1").setViewPointId("http://localhost:8080/wwww/test/helloWorld").setRouteKey(i).build();
|
||||
.setUsername("1").setViewPointId("http://localhost:8080/wwww/test/helloWorld").setRouteKey(i).build();
|
||||
IndexMetaInfo info = new IndexMetaInfo(new RequestSpanData(requestSpan), new DataFileNameDesc(), i, j);
|
||||
collection.add(info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue