/** @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); }
@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); }
@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(); }
@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); }
@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()); }
@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); }
@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()); }
@Override protected void setUp() throws Exception { // TODO Auto-generated method stub super.setUp(); cUBankService = SpringContext.getBean(CUBankService.class); }
/** @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()); }
@Override protected void setUp() throws Exception { super.setUp(); submitTripWebService = SubmitTripWebServiceImpl.class.newInstance(); documentService = SpringContext.getBean(DocumentService.class); }
@Override protected void setUp() throws Exception { super.setUp(); }
@Override protected void tearDown() throws Exception { super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); }