TAddressServiceImplTest.java 595 B

12345678910111213141516171819
  1. package com.ylx.massage.service.impl;
  2. import org.junit.jupiter.api.Test;
  3. import static org.junit.jupiter.api.Assertions.assertEquals;
  4. import static org.junit.jupiter.api.Assertions.assertThrows;
  5. public class TAddressServiceImplTest {
  6. @Test
  7. public void pcUserAddressListRejectsBlankOpenId() {
  8. TAddressServiceImpl service = new TAddressServiceImpl();
  9. IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
  10. () -> service.getPcUserAddressList(" "));
  11. assertEquals("openId不能为空", exception.getMessage());
  12. }
  13. }