001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.opensource.org/licenses/ecl1.php
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016: package org.kuali.test;
017:
018: import org.kuali.core.util.KualiDecimal;
019:
020: /**
021: * provides centralized storage of constants that occur throughout the tests
022: */
023: public interface KualiTestConstants {
024:
025: /**
026: * contains Test related constants
027: */
028: public final class TestConstants {
029: private static final String HOST = "localhost";
030: private static final String PORT = "8080";
031: public static final String BASE_PATH = "http://" + HOST + ":"
032: + PORT + "/";
033: public static final String MESSAGE = "JUNIT test entry. If this exist after the tests are not cleaning up correctly. Created by class";
034: public static final String TEST_BATCH_STAGING_DIRECTORY = "/java/projects/kuali_project/test/src/org/kuali/test/staging/";
035:
036: /**
037: * group of data values that should work if used togther
038: */
039: public static class Data1 {
040: public final static String ACCOUNT_NUMBER = "9544900";
041: public final static String CHART_OF_ACCOUNTS_CODE = "BA";
042: public final static String OBJECT_CODE = "9912";
043: public final static String ORGANIZATION_CODE = "PARK";
044: public final static String PERSON_UNIVERSAL_IDENTIFIER = "4219606069";
045: public final static Integer UNIVERSITY_FISCAL_YEAR = new Integer(
046: 2004);
047:
048: public static final String OBJECT_TYPE_CODE = "AS";
049: }
050:
051: public static class Data2 {
052: public final static String AUTHENTICATION_USER_ID = "KHUNTLEY";
053: public final static String AUTHENTICATION_USER_ID_THAT_IS_SUPERVISOR = "HEAGLE";
054: public static final String KUALI_JV_USER_WORKGROUP = "KUALI_ROLE_JOURNAL_VOUCHER_DOCUMENT_USER";
055: public static final String WORKFLOW_ADMIN_WORKGROUP = "WorkflowAdmin";
056: public static final String KUALI_DV_ADMIN_WORKGROUP = "KUALI_ROLE_DV_ADMIN";
057: public static final String KUALI_FMSOPS = "KUALI_FMSOPS";
058: }
059:
060: public static class Data3 {
061: public static final Long DOC_HDR_ID = new Long(100000);
062: public static final String CHART = "UA";
063: public static final String ACCOUNT = "1912610";
064: public static final String SUBACCOUNT = "AUCAP";
065: public static final String OBJCODE_SOURCE = "4166";
066: public static final String SUBOBJCODE_SOURCE = "FIS";
067: public static final String OBJCODE_TARGET = "5000";
068: public static final String SUBOBJCODE_TARGET = "A/R";
069: public static final String PROJECT = "BOB";
070: public static final KualiDecimal LINEAMT = new KualiDecimal(
071: "21.12");
072: public static final String OBJECT_TYPE_CODE = "AS";
073: public static final String DEBIT_CREDIT_CODE = "D";
074: public static final String ENCUMBRANCE_UPDATE_CODE = "Y";
075:
076: public static final Integer BILLING_ITEM_QUANTITY = new Integer(
077: 5);
078: public static final String BILLING_ITEM_STOCK_DESCRIPTION = "steer";
079: public static final String BILLIING_ITEM_STOCK_NUMBER = "M000";
080: public static final Double BILLING_ITEM_UNIT_AMOUNT = new Double(
081: "2.0");
082: public static final String BILLING_ITEM_UNIT_OF_MEASUREMENT_CODE = "hd";
083: public static final Integer POSTING_YEAR = new Integer(2004);
084: public static final Integer SEQUENCE_NUMBER = new Integer(1);
085: }
086:
087: public static class Data4 {
088: public static final String ACCOUNT = "1031400";
089: public static final String ACCOUNT2 = "5731402";
090: public static final KualiDecimal AMOUNT = new KualiDecimal(
091: "2.50");
092: public static final String BALANCE_TYPE_CODE = "AC";
093: public static final String CHART_CODE = "BL";
094: public static final String CHART_CODE_UA = "UA";
095: public static final String CHART_CODE_BA = "BA";
096: public static final String DOC_HDR_ID = "1005";
097: public static final String OBJECT_CODE = "3000";
098: public static final String OBJECT_CODE2 = "5099";
099: public static final Integer POSTING_YEAR = new Integer(2004);
100: public static final String PROJECT_CODE = "KUL";
101: public static final Integer SEQUENCE_NUMBER = new Integer(1);
102: public static final String SUBACCOUNT = "AUCAP";
103: public static final String SUBACCOUNT2 = "ADV";
104: public static final String SUBOBJECT_CODE = "WTS";
105: public static final String OBJECT_TYPE_CODE = "AS";
106: public static final String DEBIT_CREDIT_CODE = "D";
107: public static final String ENCUMBRANCE_UPDATE_CODE = "Y";
108: public static final String ORG_REFERENCE_ID = "12345678";
109: public static final String OVERRIDE_CODE = "O";
110: public static final String REF_NUMBER = "123456789";
111: public static final String REF_ORIGIN_CODE = "AB";
112: public static final String REF_TYPE_CODE = "ABCD";
113: public static final String USER_ID1 = "VPUTMAN";
114: public static final String USER_ID2 = "KHUNTLEY";
115: }
116:
117: public static class Data5 {
118: public static final String BUDGET_AGGREGATION_CODE1 = "O";
119: public static final String BUDGET_AGGREGATION_NAME1 = "OBJECT";
120: public static final String BUDGET_AGGREGATION_CODE2 = "L";
121: public static final String BUDGET_AGGREGATION_NAME2 = "OBJECT LEVEL";
122:
123: public static final String FEDERAL_FUNDED_CODE1 = "F";
124: public static final String FEDERAL_FUNDED_NAME1 = "FEDERALLY FUNDED AND OWNED";
125: public static final String FEDERAL_FUNDED_CODE_BAD = "A";
126: public static final String FEDERAL_FUNDED_NAME_BAD = "This is a bad code name";
127: }
128:
129: public static class PositionObjectTestData {
130: public static final String UNIVERSITY_FISCAL_YEAR = "2011";
131: public static final String CHART_OF_ACCOUNTS_CODE = "SB";
132: public static final String FINANCIAL_OBJECT_CODE = "2504";
133: }
134:
135: public static class BenefitsCalculationServiceImplTest {
136: public static final String FISCAL_YEAR = "2008";
137: public static final String CHART = "BA";
138: public static final String POSITION_TYPE_CODE = "B";
139: }
140: }
141: }
|