Fixing test-order dependency for FstObjectInputTest (#2815)

This commit is contained in:
OrDTesters 2018-12-10 02:28:15 -06:00 committed by Ian Luo
parent 38c2151857
commit 437c6ce220
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,7 @@ package org.apache.dubbo.common.serialize.fst;
import org.apache.dubbo.common.serialize.model.AnimalEnum;
import org.apache.dubbo.common.serialize.model.person.FullAddress;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@ -41,6 +42,11 @@ public class FstObjectOutputTest {
this.fstObjectOutput = new FstObjectOutput(byteArrayOutputStream);
}
@After
public void tearDown() throws IOException {
new FstObjectInput(new ByteArrayInputStream(new byte[]{0}));
}
@Test
public void testWriteBool() throws IOException {