| 12345678910111213141516171819 |
- package com.ylx.massage.service.impl;
- import org.junit.jupiter.api.Test;
- import static org.junit.jupiter.api.Assertions.assertEquals;
- import static org.junit.jupiter.api.Assertions.assertThrows;
- public class TAddressServiceImplTest {
- @Test
- public void pcUserAddressListRejectsBlankOpenId() {
- TAddressServiceImpl service = new TAddressServiceImpl();
- IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
- () -> service.getPcUserAddressList(" "));
- assertEquals("openId不能为空", exception.getMessage());
- }
- }
|