mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-30 10:07:06 +08:00 
			
		
		
		
	🎨 WxMpSubscribeMessage实现序列化接口
This commit is contained in:
		| @ -17,7 +17,7 @@ import java.util.Map; | ||||
| @NoArgsConstructor | ||||
| @Builder | ||||
| @AllArgsConstructor | ||||
| public class WxMpSubscribeMessage { | ||||
| public class WxMpSubscribeMessage implements Serializable { | ||||
|  | ||||
|   /** | ||||
|    * 接收者openid. | ||||
|  | ||||
| @ -2,6 +2,9 @@ package me.chanjar.weixin.mp.bean.subscribe; | ||||
|  | ||||
| import org.testng.annotations.*; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import java.util.Arrays; | ||||
|  | ||||
| import static org.testng.AssertJUnit.*; | ||||
|  | ||||
| /** | ||||
| @ -43,4 +46,9 @@ public class WxMpSubscribeMessageTest { | ||||
|     assertEquals(message.toJson(), actual); | ||||
|  | ||||
|   } | ||||
|  | ||||
|   @Test | ||||
|   void testWxMpSubscribeMessageIsSerializable() { | ||||
|     assertTrue(Arrays.stream(WxMpSubscribeMessage.class.getInterfaces()).anyMatch(anInterface -> anInterface.isInstance(Serializable.class))); | ||||
|   } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 giveup
					giveup