no message

This commit is contained in:
pengys5 2017-04-26 12:08:49 +08:00
parent 6233b69e57
commit e77abe23a6
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public class GlobalTraceSearchTestCase {
String segment_Data = JsonFileReader.INSTANCE.read(this.getClass().getResource("/").getPath() + "/json/globaltrace/persistence/globaltrace_segment.json");
mockSegment(getResponseFromEs, SegmentIndex.INDEX, SegmentIndex.TYPE_RECORD, segment_1, segment_Data);
GlobalTraceSearchWithGlobalId search = new GlobalTraceSearchWithGlobalId(null, null, null);
GlobalTraceSearchWithGlobalId search = new GlobalTraceSearchWithGlobalId(GlobalTraceSearchWithGlobalId.WorkerRole.INSTANCE, null, null);
JsonObject responseObj = new JsonObject();
// search.allocateJob(globalTraceId, responseObj);

View File

@ -15,11 +15,11 @@ public class TestAbstractGetProvider extends AbstractGetProvider {
@Override
public Role role() {
return null;
return TestAbstractGet.WorkerRole.INSTANCE;
}
@Override
public AbstractWorker workerInstance(ClusterWorkerContext clusterContext) {
return new TestAbstractGet(null, null, null);
return new TestAbstractGet(role(), null, null);
}
}

View File

@ -25,6 +25,6 @@ public class TestAbstractPostProvider extends AbstractPostProvider {
@Override
public AbstractWorker workerInstance(ClusterWorkerContext clusterContext) {
return new TestAbstractPost(null, null, null);
return new TestAbstractPost(TestAbstractPost.WorkerRole.INSTANCE, null, null);
}
}