File tree Expand file tree Collapse file tree
src/test/java/org/apache/rocketmq/remoting/protocol/statictopic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ java_library(
2222 visibility = ["//visibility:public" ],
2323 deps = [
2424 "//common" ,
25- "@maven//:com_alibaba_fastjson" ,
2625 "@maven//:com_alibaba_fastjson2_fastjson2" ,
2726 "@maven//:com_google_guava_guava" ,
2827 "@maven//:com_google_code_findbugs_jsr305" ,
@@ -52,6 +51,7 @@ java_library(
5251 ":remoting" ,
5352 "//common" ,
5453 "//:test_deps" ,
54+ "@maven//:org_objenesis_objenesis" ,
5555 "@maven//:com_alibaba_fastjson" ,
5656 "@maven//:com_alibaba_fastjson2_fastjson2" ,
5757 "@maven//:com_google_code_gson_gson" ,
Original file line number Diff line number Diff line change 1818package org .apache .rocketmq .remoting .protocol .statictopic ;
1919
2020import com .alibaba .fastjson2 .JSON ;
21- import com .alibaba .fastjson2 .JSONArray ;
2221import com .alibaba .fastjson2 .JSONObject ;
2322import com .google .common .collect .ImmutableList ;
2423import org .apache .rocketmq .remoting .protocol .RemotingSerializable ;
@@ -60,7 +59,6 @@ public void testJsonSerialize() {
6059 Assert .assertTrue (mappingDetailMap .containsKey ("currIdMap" ));
6160 Assert .assertEquals (8 , mappingDetailMap .size ());
6261 Assert .assertEquals (1 , ((JSONObject ) mappingDetailMap .get ("hostedQueues" )).size ());
63- Assert .assertEquals (1 , ((JSONArray ) ((JSONObject ) mappingDetailMap .get ("hostedQueues" )).get (0 )).size ());
6462 }
6563 {
6664 TopicQueueMappingDetail mappingDetailFromJson = RemotingSerializable .decode (mappingDetailJson .getBytes (), TopicQueueMappingDetail .class );
You can’t perform that action at this time.
0 commit comments