Fanadia_Friska

TestAddRegionCustomer

Sep 15th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. package org.jleaf.erp.master.bo.test.customer.vs.rayon;
  2.  
  3. import org.jleaf.core.BusinessTransaction;
  4. import org.jleaf.core.Dto;
  5. import org.jleaf.core.test.AbstractSpringDbUnitTest;
  6. import org.junit.Before;
  7. import org.junit.Test;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.beans.factory.annotation.Qualifier;
  10.  
  11. public class TestAddRegionCustomer extends AbstractSpringDbUnitTest {
  12.  
  13. @Autowired
  14. @Qualifier("addRegionCustomer")
  15. private BusinessTransaction addRegionCustomer;
  16.  
  17. @Before
  18. public void prepareData(){
  19. super.deleteFromTables("m_region_customer", "m_region", "m_partner");
  20. super.executeSqlScript("script/TestAddRegionCustomer.sql", false);
  21. }
  22.  
  23. @Test
  24. public void testAddRegionCustomer() throws Exception{
  25.  
  26. Dto input = new Dto();
  27. // create_datetime, create_user_id, update_datetime, update_user_id, version
  28.  
  29.  
  30. input.put("regionCustomerId", "");
  31. input.put("tenantId", "");
  32. input.put("regionId", "");
  33. input.put("regionCode", "");
  34. input.put("regionName", "");
  35. input.put("ouId", "");
  36. input.put("customerId", "");
  37. input.put("partnerId", "");
  38. input.put("partnerCode", "");
  39. input.put("partnerName", "");
  40. input.put("ctgrPartnerId", "");
  41. input.put("partnerExtName", "");
  42. input.put("npwpId", "");
  43. input.put("holdingId", "");
  44. input.put("flgHolding", "");
  45. input.put("rank", "");
  46. input.put("lineOfBusiness", "");
  47. input.put("priceLevel", "");
  48. input.put("industryType", "");
  49. input.put("npwpStatus", "");
  50. input.put("createDatetime", "");
  51. input.put("createUserId", "");
  52. input.put("updateDatetime", "");
  53. input.put("updateUserId", "");
  54. input.put("version", "");
  55. input.put("active", "");
  56. input.put("activeDatetime", "");
  57. input.put("nonActiveDatetime", "");
  58.  
  59.  
  60. input.put("", "");
  61.  
  62.  
  63. Dto output = addRegionCustomer.execute(input);
  64. }
  65.  
  66. }
Add Comment
Please, Sign In to add comment