Skip to content

Commit

Permalink
feat: try let serialize test run in sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
junyuan committed Feb 23, 2023
1 parent af35a32 commit 038b8c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GenericCustomThrowableDeterminer {
.getOrDefault(RpcConfigKeys.GENERIC_THROWABLE_FIELDS);

public static Object judgeCustomThrowableForGenericObject(Object appObject) {
if (!GENERIC_THROW_EXCEPTION || appObject == null) {
if (!isGenericThrowException() || appObject == null) {
return appObject;
}
if (!(appObject instanceof GenericObject)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.alipay.sofa.rpc.transport.ByteArrayWrapperByteBuf;
import com.caucho.hessian.io.Hessian2Output;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;

import java.io.ByteArrayOutputStream;
Expand All @@ -38,6 +39,7 @@
* @author xingqi
* @version : SofaResponseHessianSerializerTest.java, v 0.1 2022年10月20日 4:07 PM xingqi Exp $
*/
@FixMethodOrder
public class SofaResponseHessianSerializerTest {

@Test
Expand Down Expand Up @@ -94,7 +96,7 @@ public void testCustomThrowableDeserializerEnabled() throws Exception {
}
}

@Test
@Test()
public void testCustomThrowableDeserializerEnabledForIncompatible() throws Exception {
setGenericThrowException(true);
try {
Expand Down

0 comments on commit 038b8c9

Please # to comment.