View Javadoc
1   /*
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
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  
17  package org.kuali.rice.krms.test;
18  
19  /**
20   * RuleManagementBaseTestObjectNames use is to provide common consistent literal values for tests in this package
21   *
22   * @author Kuali Rice Team (rice.collab@kuali.org)
23   */
24  public class RuleManagementBaseTestObjectNames {
25      protected String discriminator;
26  
27      protected String object0;
28      protected String object1;
29      protected String object2;
30      protected String object3;
31      protected String object4;
32      protected String object5;
33      protected String object6;
34      protected String object7;
35      protected String object8;
36  
37      protected String action;
38      protected String action_Id;
39      protected String action_Name;
40      protected String action_Descr;
41      protected String action0;
42      protected String action0_Id;
43      protected String action0_Name;
44      protected String action0_Descr;
45      protected String action1;
46      protected String action1_Id;
47      protected String action1_Name;
48      protected String action1_Descr;
49      protected String action2;
50      protected String action2_Id;
51      protected String action2_Name;
52      protected String action2_Descr;
53      protected String action3;
54      protected String action3_Id;
55      protected String action3_Name;
56      protected String action3_Descr;
57      protected String action4;
58      protected String action4_Id;
59      protected String action4_Name;
60      protected String action4_Descr;
61  
62      protected String actionAttribute;
63      protected String actionAttribute_Key;
64      protected String actionAttribute_Value;
65      protected String actionAttribute0;
66      protected String actionAttribute0_Key;
67      protected String actionAttribute0_Value;
68      protected String actionAttribute1;
69      protected String actionAttribute1_Key;
70      protected String actionAttribute1_Value;
71  
72      protected String agenda_Id;
73      protected String agenda_Name;
74      protected String agendaItem_Id;
75      protected String agendaItem_0_Id;
76      protected String agendaItem_1_Id;
77      protected String agendaItem_2_Id;
78      protected String agendaItem_3_Id;
79      protected String agendaItem_4_Id;
80      protected String agendaItem_5_Id;
81      protected String agendaItem_6_Id;
82      protected String agendaItem_7_Id;
83  
84      protected String typeId;
85      protected String type0_Id;
86  
87      protected String contextId;
88      protected String context0_Id;
89      protected String context1_Id;
90      protected String context2_Id;
91      protected String context3_Id;
92  
93      protected String contextDescr;
94      protected String context0_Descr;
95      protected String context1_Descr;
96      protected String context2_Descr;
97      protected String context3_Descr;
98  
99      protected String contextName;
100     protected String context0_Name;
101     protected String context1_Name;
102     protected String context2_Name;
103     protected String context3_Name;
104 
105     protected String namespaceName;
106     protected String namespaceType;
107 
108     protected String nlUsage0_Id;
109     protected String nlUsage1_Id;
110     protected String nlUsage2_Id;
111     protected String nlUsage3_Id;
112 
113     protected String nlUsage0_Name;
114     protected String nlUsage0_Descr;
115     protected String nlUsage0_KrmsType;
116 
117     protected String proposition_Id;
118     protected String proposition_0_Id;
119     protected String proposition_1_Id;
120     protected String proposition_2_Id;
121     protected String proposition_3_Id;
122     protected String proposition_Descr;
123     protected String proposition_0_Descr;
124     protected String proposition_1_Descr;
125     protected String proposition_2_Descr;
126     protected String proposition_3_Descr;
127 
128     protected String referenceObject_0_Id;
129     protected String referenceObject_1_Id;
130     protected String referenceObject_2_Id;
131     protected String referenceObject_3_Id;
132 
133     protected String referenceObject_0_DiscriminatorType;
134     protected String referenceObject_1_DiscriminatorType;
135     protected String referenceObject_2_DiscriminatorType;
136     protected String referenceObject_3_DiscriminatorType;
137 
138     protected String rule_Id;
139     protected String rule_0_Id;
140     protected String rule_1_Id;
141     protected String rule_2_Id;
142     protected String rule_3_Id;
143     protected String rule_4_Id;
144     protected String rule_5_Id;
145     protected String rule_6_Id;
146     protected String rule_7_Id;
147     protected String rule_0_Name;
148     protected String rule_1_Name;
149     protected String rule_2_Name;
150     protected String rule_3_Name;
151     protected String rule_4_Name;
152     protected String rule_5_Name;
153     protected String rule_6_Name;
154     protected String rule_7_Name;
155 
156     public RuleManagementBaseTestObjectNames(String classDiscriminator, String testDiscriminator) {
157         setTestNames(classDiscriminator, testDiscriminator);
158     }
159 
160     protected void setTestNames(String classDiscriminator, String testDiscriminator) {
161         discriminator =  classDiscriminator + testDiscriminator + "00";
162         object0 = classDiscriminator + testDiscriminator + "00";
163         object1 = classDiscriminator + testDiscriminator + "01";
164         object2 = classDiscriminator + testDiscriminator + "02";
165         object3 = classDiscriminator + testDiscriminator + "03";
166         object4 = classDiscriminator + testDiscriminator + "04";
167         object5 = classDiscriminator + testDiscriminator + "05";
168         object6 = classDiscriminator + testDiscriminator + "06";
169         object7 = classDiscriminator + testDiscriminator + "07";
170         object8 = classDiscriminator + testDiscriminator + "08";
171 
172         action = "Action" + object0;
173         action_Id = "ActionId" + object0;
174         action_Name = "ActionName" + object0;
175         action_Descr = "ActionDesc" + object0;
176         action0 = "Action" + object0;
177         action0_Id = "ActionId" + object0;
178         action0_Name = "ActionName" + object0;
179         action0_Descr = "ActionDesc" + object0;
180         action1 = "Action" + object1;
181         action1_Id = "ActionId" + object1;
182         action1_Name = "ActionName" + object1;
183         action1_Descr = "ActionDesc" + object1;
184         action2 = "Action" + object2;
185         action2_Id = "ActionId" + object2;
186         action2_Name = "ActionName" + object2;
187         action2_Descr = "ActionDesc" + object2;
188         action3 = "Action" + object3;
189         action3_Id = "ActionId" + object3;
190         action3_Name = "ActionName" + object3;
191         action3_Descr = "ActionDesc" + object3;
192         action4 = "Action" + object4;
193         action4_Id = "ActionId" + object4;
194         action4_Name = "ActionName" + object4;
195         action4_Descr = "ActionDesc" + object4;
196 
197         actionAttribute = "ActionAttribute" + object0;
198         actionAttribute_Key = "ActionAttributeKey" + object0;
199         actionAttribute_Value = "ActionAttributeValue" + object0;
200         actionAttribute0 = "ActionAttribute" + object0;
201         actionAttribute0_Key = "ActionAttributeKey" + object0;
202         actionAttribute0_Value = "ActionAttributeValue" + object0;
203         actionAttribute1 = "ActionAttribute" + object1;
204         actionAttribute1_Key = "ActionAttributeKey" + object1;
205         actionAttribute1_Value = "ActionAttributeValue" + object1;
206 
207         agenda_Id = "AgendaId" + object0;
208         agenda_Name = "AgendaName" + object0;
209 
210         agendaItem_Id = "AI" + object0;
211         agendaItem_0_Id = "AI" + object0;
212         agendaItem_1_Id = "AI" + object1;
213         agendaItem_2_Id = "AI" + object2;
214         agendaItem_3_Id = "AI" + object3;
215         agendaItem_4_Id = "AI" + object4;
216         agendaItem_5_Id = "AI" + object5;
217         agendaItem_6_Id = "AI" + object6;
218         agendaItem_7_Id = "AI" + object7;
219 
220         typeId = "TypeId" + object0;
221         type0_Id = "TypeId" + object0;
222 
223         contextId = "ContextId" + object0;
224         context0_Id = "ContextId" + object0;
225         context1_Id = "ContextId" + object1;
226         context2_Id = "ContextId" + object2;
227         context3_Id = "ContextId" + object3;
228 
229         contextDescr = "ContextDescr" + object0;
230         context0_Descr = "ContextDescr" + object0;
231         context1_Descr = "ContextDescr" + object1;
232         context2_Descr = "ContextDescr" + object2;
233         context3_Descr = "ContextDescr" + object3;
234 
235         contextName = "ContextName" + object0;
236         context0_Name = "ContextName" + object0;
237         context1_Name = "ContextName" + object1;
238         context2_Name = "ContextName" + object2;
239         context3_Name = "ContextName" + object3;
240 
241         namespaceName = "Namespace" + object0;
242         namespaceType = "NamespaceType" + object0;
243 
244         nlUsage0_Id = "krms.nl." + object0;
245         nlUsage1_Id = "krms.nl." + object1;
246         nlUsage2_Id = "krms.nl." + object2;
247         nlUsage3_Id = "krms.nl." + object3;
248 
249         nlUsage0_Name = object0;
250         nlUsage0_Descr = "Description-" + object0;
251         nlUsage0_KrmsType = object0;
252 
253         referenceObject_0_Id = "PA" + object0;
254         referenceObject_1_Id = "PA" + object1;
255         referenceObject_2_Id = "PA" + object2;
256         referenceObject_3_Id = "PA" + object3;
257 
258         referenceObject_0_DiscriminatorType = "ParkingAffiliationType";
259         referenceObject_1_DiscriminatorType = "ParkingAffiliationType";
260         referenceObject_2_DiscriminatorType = "ParkingAffiliationType";
261         referenceObject_3_DiscriminatorType = "ParkingAffiliationType";
262 
263         rule_Id = "RuleId" + object0;
264         rule_0_Id = "RuleId" + object0;
265         rule_1_Id = "RuleId" + object1;
266         rule_2_Id = "RuleId" + object2;
267         rule_3_Id = "RuleId" + object3;
268         rule_4_Id = "RuleId" + object4;
269         rule_5_Id = "RuleId" + object5;
270         rule_6_Id = "RuleId" + object6;
271         rule_7_Id = "RuleId" + object7;
272         rule_0_Name = "RuleName" + object0;
273         rule_1_Name = "RuleName" + object1;
274         rule_2_Name = "RuleName" + object2;
275         rule_3_Name = "RuleName" + object3;
276         rule_4_Name = "RuleName" + object4;
277         rule_5_Name = "RuleName" + object5;
278         rule_6_Name = "RuleName" + object6;
279         rule_7_Name = "RuleName" + object7;
280 
281         proposition_Id = "P" + object0;
282         proposition_0_Id = "P" + object0;
283         proposition_1_Id = "P" + object1;
284         proposition_2_Id = "P" + object2;
285         proposition_3_Id = "P" + object3;
286 
287         proposition_Descr = "P" + object0 + "_simple_proposition";
288         proposition_0_Descr = "P" + object0 + "_simple_proposition";
289         proposition_1_Descr = "P" + object1 + "_simple_proposition";
290         proposition_2_Descr = "P" + object2 + "_simple_proposition";
291         proposition_3_Descr = "P" + object3 + "_simple_proposition";
292     }
293 }