Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
junyuan committed Feb 27, 2023
1 parent 038b8c9 commit b25ea5d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ public void testCustomThrowableDeserializer() throws Exception {

@Test
public void testCustomThrowableDeserializerEnabled() throws Exception {
setGenericThrowException(true);
try {
setGenericThrowException(true);

GenericMultipleClassLoaderSofaSerializerFactory factory = new GenericMultipleClassLoaderSofaSerializerFactory();

ByteArrayOutputStream bsOut = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ public void testCustomThrowableDeserializer() throws Exception {

@Test
public void testCustomThrowableDeserializerEnabled() throws Exception {
setGenericThrowException(true);
try {
setGenericThrowException(true);

GenericSingleClassLoaderSofaSerializerFactory factory = new GenericSingleClassLoaderSofaSerializerFactory();

ByteArrayOutputStream bsOut = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public class GenericCustomThrowableDeterminerTest {

@Test
public void testJudgeCustomThrowable() throws Exception {
setGenericThrowException(true);
try {
setGenericThrowException(true);
Assert.assertNull(judgeCustomThrowableForGenericObject(null));
Object o = new Object();
Assert.assertEquals(o, judgeCustomThrowableForGenericObject(o));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public void testCustomThrowableDeserializer() throws Exception {

@Test
public void testCustomThrowableDeserializerEnabled() throws Exception {
setGenericThrowException(true);
try {
setGenericThrowException(true);
GenericMultipleClassLoaderSofaSerializerFactory factory = new GenericMultipleClassLoaderSofaSerializerFactory();
SofaResponseHessianSerializer serializer = new SofaResponseHessianSerializer(null, factory);

Expand Down Expand Up @@ -98,8 +98,8 @@ public void testCustomThrowableDeserializerEnabled() throws Exception {

@Test()
public void testCustomThrowableDeserializerEnabledForIncompatible() throws Exception {
setGenericThrowException(true);
try {
setGenericThrowException(true);
GenericMultipleClassLoaderSofaSerializerFactory factory = new GenericMultipleClassLoaderSofaSerializerFactory();
SofaResponseHessianSerializer serializer = new SofaResponseHessianSerializer(null, factory);
// 将com.alipay.sofa.rpc.codec.sofahessian.mock.DeprecatedMockError重命名为com.alipay.sofa.rpc.codec.sofahessian.mock.MockError
Expand Down

0 comments on commit b25ea5d

Please # to comment.