コード例 #1
0
 /**
  * Get FinancialYear and update using financialYearService.updateFinancialYear() If
  * financialYear.getId()=0 test will be failed
  *
  * @throws Exception
  */
 @Test
 public void updateFinancialYear() throws Exception {
   FinancialYear financialYear = prepareFinancialYear();
   financialYearService.get(financialYear.getId());
   financialYear.setLabel("2012-2013");
   financialYearService.save(financialYear);
   Assert.assertTrue(financialYear.getId() != 0);
 }
コード例 #2
0
 /**
  * Get FinancialYear object of specific id using financialYearService.get() If financialYear ==
  * null test will be failed.
  *
  * @throws Exception
  */
 @Test
 public void getFinancialYear() throws Exception {
   FinancialYear financialYear = prepareFinancialYear();
   financialYearService.save(financialYear);
   financialYear = financialYearService.get(financialYear.getId());
   // logger.info("FinancialYearTestCase.getFinancialYear() :: financialYear.getId()" +
   // financialYear.getId());
   Assert.assertTrue(financialYear != null);
 }