AdapayServiceTest.java 943 B

1234567891011121314151617181920212223242526272829
  1. package com.izouma.nineth.service;
  2. import com.huifu.adapay.core.exception.BaseAdaPayException;
  3. import com.izouma.nineth.ApplicationTests;
  4. import org.junit.Test;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import static org.junit.Assert.*;
  7. public class AdapayServiceTest extends ApplicationTests {
  8. @Autowired
  9. private AdapayService adapayService;
  10. @Test
  11. public void createMember() throws BaseAdaPayException {
  12. adapayService.createMember(99999999999999L, "15077886171", "熊竹", "321002199408304614");
  13. }
  14. @Test
  15. public void createSettleAccount() throws BaseAdaPayException {
  16. adapayService.createSettleAccount("99999999999999", "熊竹", "321002199408304614",
  17. "15077886171", "6222024301070380163");
  18. }
  19. @Test
  20. public void delSettleAccount() throws BaseAdaPayException {
  21. adapayService.delSettleAccount("99999999999999", "0288070028826880");
  22. }
  23. }