コード例 #1
0
  @Test
  @Rollback(true)
  public void createMasProvince() {
    MasProvince masProvince = new MasProvince();
    masProvince.setName("Bangkok");
    masProvince.setCode("PRO-01");
    masProvince.setIsActive(true);
    masProvince.setAuditFlag("C");
    masProvince.setCreatedBy(1);
    masProvince.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince);

    MasProvince masProvince1 = new MasProvince();
    masProvince1.setName("trad");
    masProvince1.setCode("PRO-02");
    masProvince1.setIsActive(true);
    masProvince1.setAuditFlag("C");
    masProvince1.setCreatedBy(1);
    masProvince1.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince1);
  }
コード例 #2
0
  @Before
  public void setProvince() {
    MasProvince masProvince = new MasProvince();
    masProvince.setName("Bangkok");
    masProvince.setCode("PRO-01");
    masProvince.setIsActive(true);
    masProvince.setAuditFlag("C");
    masProvince.setCreatedBy(1);
    masProvince.setCreatedTimeStamp(Calendar.getInstance().getTime());
    masProvinceRepository.create(masProvince);

    id = masProvince.getId();
  }