001: /*
002: * Copyright 2005-2006 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: *
022: * provides centralized storage of constants that occur throughout the tests
023: *
024: *
025: */
026: public interface KNSTestConstants {
027: /**
028: * contains Test related constants
029: *
030: *
031: */
032: public final class TestConstants {
033: private static final String HOST = "localhost";
034: private static final String PORT = "8080";
035: public static final String BASE_PATH = "http://" + HOST + ":"
036: + PORT + "/";
037: public static final String MESSAGE = "JUNIT test entry. If this exist after the tests are not cleaning up correctly. Created by class";
038:
039: /**
040: * group of data values that should work if used togther
041: *
042: *
043: */
044: public static class Data1 {
045: public final static String ACCOUNT_NUMBER = "9544900";
046: public final static String CHART_OF_ACCOUNTS_CODE = "BA";
047: public final static String OBJECT_CODE = "9912";
048: public final static String ORGANIZATION_CODE = "PARK";
049: public final static String PERSON_UNIVERSAL_IDENTIFIER = "4219606069";
050: public final static Integer UNIVERSITY_FISCAL_YEAR = new Integer(
051: 2004);
052:
053: public static final String OBJECT_TYPE_CODE = "AS";
054: }
055:
056: public static class Data2 {
057: public final static String AUTHENTICATION_USER_ID = "KHUNTLEY";
058: public final static String AUTHENTICATION_USER_ID_THAT_IS_SUPERVISOR = "HEAGLE";
059: public static final String KUALI_JV_USER_WORKGROUP = "KUALI_ROLE_JOURNAL_VOUCHER_DOCUMENT_USER";
060: public static final String WORKFLOW_ADMIN_WORKGROUP = "WorkflowAdmin";
061: public static final String KUALI_DV_ADMIN_WORKGROUP = "KUALI_ROLE_DV_ADMIN";
062: }
063:
064: public static class Data3 {
065: public static final Long DOC_HDR_ID = new Long(100000);
066: public static final String CHART = "UA";
067: public static final String ACCOUNT = "1912610";
068: public static final String SUBACCOUNT = "AUCAP";
069: public static final String OBJCODE_SOURCE = "4166";
070: public static final String SUBOBJCODE_SOURCE = "FIS";
071: public static final String OBJCODE_TARGET = "5000";
072: public static final String SUBOBJCODE_TARGET = "A/R";
073: public static final String PROJECT = "BOB";
074: public static final KualiDecimal LINEAMT = new KualiDecimal(
075: "21.12");
076: public static final String OBJECT_TYPE_CODE = "AS";
077: public static final String DEBIT_CREDIT_CODE = "D";
078: public static final String ENCUMBRANCE_UPDATE_CODE = "Y";
079:
080: public static final Integer BILLING_ITEM_QUANTITY = new Integer(
081: 5);
082: public static final String BILLING_ITEM_STOCK_DESCRIPTION = "steer";
083: public static final String BILLIING_ITEM_STOCK_NUMBER = "M000";
084: public static final Double BILLING_ITEM_UNIT_AMOUNT = new Double(
085: "2.0");
086: public static final String BILLING_ITEM_UNIT_OF_MEASUREMENT_CODE = "hd";
087: public static final Integer POSTING_YEAR = new Integer(2004);
088: public static final Integer SEQUENCE_NUMBER = new Integer(1);
089: }
090:
091: public static class Data4 {
092: public static final String ACCOUNT = "1031400";
093: public static final String ACCOUNT2 = "5731402";
094: public static final KualiDecimal AMOUNT = new KualiDecimal(
095: "2.50");
096: public static final String BALANCE_TYPE_CODE = "AC";
097: public static final String CHART_CODE = "BL";
098: public static final String CHART_CODE_UA = "UA";
099: public static final String CHART_CODE_BA = "BA";
100: public static final String DOC_HDR_ID = "1005";
101: public static final String OBJECT_CODE = "3000";
102: public static final String OBJECT_CODE2 = "5099";
103: public static final Integer POSTING_YEAR = new Integer(2004);
104: public static final String PROJECT_CODE = "KUL";
105: public static final Integer SEQUENCE_NUMBER = new Integer(1);
106: public static final String SUBACCOUNT = "AUCAP";
107: public static final String SUBACCOUNT2 = "ADV";
108: public static final String SUBOBJECT_CODE = "WTS";
109: public static final String OBJECT_TYPE_CODE = "AS";
110: public static final String DEBIT_CREDIT_CODE = "D";
111: public static final String ENCUMBRANCE_UPDATE_CODE = "Y";
112: public static final String ORG_REFERENCE_ID = "12345678";
113: public static final String OVERRIDE_CODE = "O";
114: public static final String REF_NUMBER = "123456789";
115: public static final String REF_ORIGIN_CODE = "AB";
116: public static final String REF_TYPE_CODE = "ABCD";
117: public static final String USER_ID1 = "VPUTMAN";
118: public static final String USER_ID2 = "KHUNTLEY";
119: }
120:
121: public static class Data5 {
122: public static final String BUDGET_AGGREGATION_CODE1 = "O";
123: public static final String BUDGET_AGGREGATION_NAME1 = "OBJECT";
124: public static final String BUDGET_AGGREGATION_CODE2 = "L";
125: public static final String BUDGET_AGGREGATION_NAME2 = "OBJECT LEVEL";
126:
127: public static final String FEDERAL_FUNDED_CODE1 = "F";
128: public static final String FEDERAL_FUNDED_NAME1 = "FEDERALLY FUNDED AND OWNED";
129: public static final String FEDERAL_FUNDED_CODE_BAD = "A";
130: public static final String FEDERAL_FUNDED_NAME_BAD = "This is a bad code name";
131: }
132: }
133: }
|