@@ -0,0 +1,1043 @@
+package com.a.eye.skywalking.storage.data.file;%0A%0Aimport com.a.eye.skywalking.network.grpc.RequestSpan;%0Aimport com.a.eye.skywalking.storage.data.index.IndexMetaInfo;%0Aimport com.a.eye.skywalking.storage.data.spandata.RequestSpanData;%0Aimport com.a.eye.skywalking.storage.data.spandata.SpanDataBuilder;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by wusheng on 2016/11/29.%0A */%0Apublic class DataFileTest %7B%0A    @Test%0A    public void testWriteFile()%7B%0A        DataFile dataFile = new DataFile();%0A%0A        IndexMetaInfo info = null;%0A        for (int i = 0; i %3C 100; i++) %7B%0A            RequestSpan span = RequestSpan.newBuilder().setUserId(%221%22).setApplicationId(%22app%22).build();%0A%0A            try %7B%0A                info = dataFile.write(new RequestSpanData(span));%0A            %7D finally %7B%0A                dataFile.flush();%0A            %7D%0A%0A            RequestSpan newSpan = SpanDataBuilder.buildRequestSpan(dataFile.read(info.getOffset(), info.getLength()));%0A%0A            Assert.assertEquals(%221%22, newSpan.getUserId());%0A        %7D%0A    %7D%0A%7D%0A

add a test case for DataFile write and read