コード例 #1
0
ファイル: TemProfileTest.java プロジェクト: hawking81/kfs
 /** @see junit.framework.TestCase#setUp() */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   businessObjectService = SpringContext.getBean(BusinessObjectService.class);
   dataDictionaryService = SpringContext.getBean(DataDictionaryService.class);
   sas = SpringContext.getBean(SequenceAccessorService.class);
 }
コード例 #2
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    String messageFileName =
        LaborTestDataPropertyConstants.TEST_DATA_PACKAGE_NAME + "/message.properties";
    String propertiesFileName =
        LaborTestDataPropertyConstants.TEST_DATA_PACKAGE_NAME
            + "/laborGLLedgerEntryPoster.properties";

    properties = TestDataPreparator.loadPropertiesFromClassPath(propertiesFileName);

    fieldNames = properties.getProperty("fieldNames");
    deliminator = properties.getProperty("deliminator");
    keyFieldList = Arrays.asList(StringUtils.split(fieldNames, deliminator));

    laborGLLedgerEntryPoster =
        SpringContext.getBean(PostTransaction.class, "laborGLLedgerEntryPoster");
    businessObjectService = SpringContext.getBean(BusinessObjectService.class);
    originEntryGroupService = SpringContext.getBean(LaborOriginEntryGroupService.class);
    laborGeneralLedgerEntryService = SpringContext.getBean(LaborGeneralLedgerEntryService.class);
    DateTimeService dateTimeService = SpringContext.getBean(DateTimeService.class);

    // TODO:- commented out
    // group1 = originEntryGroupService.createGroup(dateTimeService.getCurrentSqlDate(),
    // LABOR_MAIN_POSTER_VALID, false, false, false);
    today = dateTimeService.getCurrentDate();

    LaborGeneralLedgerEntry cleanup = new LaborGeneralLedgerEntry();
    ObjectUtil.populateBusinessObject(cleanup, properties, "dataCleanup", fieldNames, deliminator);
    fieldValues =
        ObjectUtil.buildPropertyMap(
            cleanup, Arrays.asList(StringUtils.split(fieldNames, deliminator)));
    businessObjectService.deleteMatching(LaborGeneralLedgerEntry.class, fieldValues);
  }
コード例 #3
0
  @Override
  public void setUp() throws Exception {
    super.setUp();
    String messageFileName =
        LaborTestDataPropertyConstants.TEST_DATA_PACKAGE_NAME + "/message.properties";
    String propertiesFileName =
        LaborTestDataPropertyConstants.TEST_DATA_PACKAGE_NAME
            + "/laborPosterTransactionValidator.properties";

    properties = TestDataPreparator.loadPropertiesFromClassPath(propertiesFileName);

    fieldNames = properties.getProperty("fieldNames");
    deliminator = properties.getProperty("deliminator");

    laborPosterTransactionValidator =
        SpringContext.getBean(VerifyTransaction.class, "laborPosterTransactionValidator");
    laborOriginEntryService = SpringContext.getBean(LaborOriginEntryService.class);
    originEntryGroupService = SpringContext.getBean(LaborOriginEntryGroupService.class);
    businessObjectService = SpringContext.getBean(BusinessObjectService.class);
    persistenceService = SpringContext.getBean(PersistenceService.class);

    Date today = (SpringContext.getBean(DateTimeService.class)).getCurrentSqlDate();
    // TODO:- commented out
    // group1 = originEntryGroupService.createGroup(today, LABOR_MAIN_POSTER_VALID, true, true,
    // false);
  }
 /** @see junit.framework.TestCase#tearDown() */
 @Override
 protected void tearDown() throws Exception {
   rule = null;
   document = null;
   assetIncreaseDocumentTaxLotsService = null;
   super.tearDown();
 }
 /** @see junit.framework.TestCase#setUp() */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   rule = new AssetIncreaseDocumentRules();
   assetIncreaseDocumentTaxLotsService =
       SpringContext.getBean(UpdateAssetIncreaseDocumentTaxLotsService.class);
   document = createAssetIncreaseDocument();
 }
コード例 #6
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   validation = new TravelDocumentActualExpenseLineValidation();
   dateTimeService = SpringContext.getBean(DateTimeService.class);
   docService = SpringContext.getBean(DocumentService.class);
   dictionaryValidationService = SpringContext.getBean(DictionaryValidationService.class);
   validation.setDictionaryValidationService(dictionaryValidationService);
 }
コード例 #7
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   dateFormat = DateFormat.getDateInstance();
   today = SpringContext.getBean(DateTimeService.class).getCurrentSqlDateMidnight();
   Calendar calendar = Calendar.getInstance();
   calendar.setTime(today);
   calendar.add(Calendar.DAY_OF_YEAR, 1);
   tomorrow = new Date(calendar.getTime().getTime());
 }
コード例 #8
0
  @Override
  public void setUp() throws Exception {
    super.setUp();

    laborLedgerPendingEntryService = SpringContext.getBean(LaborLedgerPendingEntryService.class);
    businessObjectService = SpringContext.getBean(BusinessObjectService.class);

    fieldValues =
        TestDataPreparator.buildCleanupCriteria(
            LaborLedgerPendingEntry.class, properties, "dataCleanup");
    businessObjectService.deleteMatching(LaborLedgerPendingEntry.class, fieldValues);
  }
コード例 #9
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   if (purapAccountingService == null) {
     purapAccountingService = SpringContext.getBean(PurapAccountingService.class);
   }
   if (purapService == null) {
     purapService = SpringContext.getBean(PurapService.class);
   }
   if (parameterService == null) {
     parameterService = SpringContext.getBean(ParameterService.class);
   }
 }
 @Override
 protected void tearDown() throws Exception {
   validation = null;
   super.tearDown();
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   validation = new CustomerInvoiceBilledByChartOfAccountsCodeValidation();
   validation.setCustomerInvoiceDocument(new CustomerInvoiceDocument());
 }
コード例 #12
0
 @Override
 protected void setUp() throws Exception {
   // TODO Auto-generated method stub
   super.setUp();
   cUBankService = SpringContext.getBean(CUBankService.class);
 }
コード例 #13
0
 /** @see junit.framework.TestCase#setUp() */
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   kemid = KemIdFixture.SAVE_KEMID_RECORD.createKemidRecord();
   savedKemid = KemIdFixture.SAVE_KEMID_RECORD.getSavedKEMID(kemid.getKemid());
 }
コード例 #14
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   submitTripWebService = SubmitTripWebServiceImpl.class.newInstance();
   documentService = SpringContext.getBean(DocumentService.class);
 }
コード例 #15
0
 @Override
 protected void setUp() throws Exception {
   super.setUp();
 }
コード例 #16
0
  @Override
  protected void tearDown() throws Exception {

    super.tearDown();
  }
コード例 #17
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
 }