01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.core.service;
17:
18: import org.apache.commons.logging.Log;
19: import org.apache.commons.logging.LogFactory;
20: import org.kuali.kfs.bo.Options;
21: import org.kuali.kfs.context.KualiTestBase;
22: import org.kuali.kfs.context.SpringContext;
23: import org.kuali.kfs.service.OptionsService;
24: import org.kuali.test.ConfigureContext;
25:
26: /**
27: * This class tests the Options service.
28: */
29: @ConfigureContext
30: public class OptionsServiceTest extends KualiTestBase {
31: private static final Log LOG = LogFactory
32: .getLog(OptionsServiceTest.class);
33:
34: public void testGetOptions() {
35: Options options = SpringContext.getBean(OptionsService.class)
36: .getCurrentYearOptions();
37:
38: assertNotNull(options);
39:
40: LOG.debug("getUniversityFiscalYear = "
41: + options.getUniversityFiscalYear());
42: LOG.debug("getActualFinancialBalanceTypeCd = "
43: + options.getActualFinancialBalanceTypeCd());
44: LOG.debug("getBudgetCheckingBalanceTypeCd = "
45: + options.getBudgetCheckingBalanceTypeCd());
46: // LOG.debug("getBudgetCheckingOptionsCode = " + options.getBudgetCheckingOptionsCode());
47: LOG.debug("getUniversityFiscalYearStartYr = "
48: + options.getUniversityFiscalYearStartYr());
49: LOG.debug("getUniversityFiscalYearStartMo = "
50: + options.getUniversityFiscalYearStartMo());
51: LOG.debug("getFinObjectTypeIncomecashCode = "
52: + options.getFinObjectTypeIncomecashCode());
53: LOG.debug("getFinObjTypeExpenditureexpCd = "
54: + options.getFinObjTypeExpenditureexpCd());
55: LOG.debug("getFinObjTypeExpendNotExpCode = "
56: + options.getFinObjTypeExpendNotExpCode());
57: LOG.debug("getFinObjTypeExpNotExpendCode = "
58: + options.getFinObjTypeExpNotExpendCode());
59: LOG.debug("getFinancialObjectTypeAssetsCd = "
60: + options.getFinancialObjectTypeAssetsCd());
61: LOG.debug("getFinObjectTypeLiabilitiesCode = "
62: + options.getFinObjectTypeLiabilitiesCode());
63: LOG.debug("getFinObjectTypeFundBalanceCd = "
64: + options.getFinObjectTypeFundBalanceCd());
65: LOG.debug("getExtrnlEncumFinBalanceTypCd = "
66: + options.getExtrnlEncumFinBalanceTypCd());
67: LOG.debug("getIntrnlEncumFinBalanceTypCd = "
68: + options.getIntrnlEncumFinBalanceTypCd());
69: LOG.debug("getPreencumbranceFinBalTypeCd = "
70: + options.getPreencumbranceFinBalTypeCd());
71: LOG.debug("getEliminationsFinBalanceTypeCd = "
72: + options.getEliminationsFinBalanceTypeCd());
73: LOG.debug("getFinObjTypeIncomeNotCashCd = "
74: + options.getFinObjTypeIncomeNotCashCd());
75: LOG.debug("getFinObjTypeCshNotIncomeCd = "
76: + options.getFinObjTypeCshNotIncomeCd());
77: LOG.debug("getUniversityFiscalYearName = "
78: + options.getUniversityFiscalYearName());
79: LOG.debug("getUniversityFinChartOfAcctCd = "
80: + options.getUniversityFinChartOfAcctCd());
81: LOG.debug("getCostShareEncumbranceBalanceTypeCd = "
82: + options.getCostShareEncumbranceBalanceTypeCd());
83: LOG.debug("getBaseBudgetFinancialBalanceTypeCd = "
84: + options.getBaseBudgetFinancialBalanceTypeCd());
85: LOG.debug("getMonthlyBudgetFinancialBalanceTypeCd = "
86: + options.getMonthlyBudgetFinancialBalanceTypeCd());
87: LOG.debug("getFinancialObjectTypeTransferIncomeCd = "
88: + options.getFinancialObjectTypeTransferIncomeCd());
89: LOG.debug("getFinancialObjectTypeTransferExpenseCd = "
90: + options.getFinancialObjectTypeTransferExpenseCd());
91: LOG.debug("getNominalFinancialBalanceTypeCd = "
92: + options.getNominalFinancialBalanceTypeCd());
93: }
94:
95: public boolean doRollback() {
96: return false;
97: }
98: }
|