Clover Coverage Report - kns-test 2.0.0-SNAPSHOT
Coverage timestamp: Wed Dec 31 1969 19:00:00 EST
../../../../../img/srcFileCovDistChart0.png 0% of files have more coverage
105   613   72   1.46
0   261   0.69   72
72     1  
1    
 
  MockWorkflowDocument       Line # 42 105 0% 72 177 0% 0.0
 
No Tests
 
1    /*
2    * Copyright 2006-2007 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    package org.kuali.rice.kns.impls;
17   
18    import java.sql.Timestamp;
19    import java.util.Set;
20   
21    import org.kuali.rice.kew.dto.ReturnPointDTO;
22    import org.kuali.rice.kew.dto.RouteHeaderDTO;
23    import org.kuali.rice.kew.dto.WorkflowAttributeDefinitionDTO;
24    import org.kuali.rice.kew.exception.WorkflowException;
25    import org.kuali.rice.kim.bo.Person;
26    import org.kuali.rice.kns.service.DocumentService;
27    import org.kuali.rice.kns.workflow.service.KualiWorkflowDocument;
28   
29   
30    /**
31    * This class is the base class for a MockWorkflowDocument. It can be extended by any other kind of mock document that needs
32    * to override certain methods. This class has absolutely no state or behavior. There is no public constructor, and no member
33    * variables. All void methods do nothing. All methods with a return value return null. All state and behavior needs to be
34    * added via a subclass.
35    */
36    /**
37    * This is a description of what this class does - bh79 don't forget to fill this in.
38    *
39    * @author Kuali Rice Team (rice.collab@kuali.org)
40    *
41    */
 
42    public abstract class MockWorkflowDocument implements KualiWorkflowDocument {
43    private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(DocumentService.class);
44   
45    /**
46    * Constructs a MockWorkflowDocument.java.
47    */
 
48  0 toggle protected MockWorkflowDocument() {}
49   
50    /**
51    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isStandardSaveAllowed()
52    */
 
53  0 toggle public boolean isStandardSaveAllowed() {
54  0 LOG.debug("Using MockWorkflowDocument");
55  0 return false;
56    }
57   
58    /**
59    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getApplicationContent()
60    */
 
61  0 toggle public String getApplicationContent() {
62  0 LOG.debug("Using MockWorkflowDocument");
63  0 return null;
64    }
65   
66    /**
67    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#setApplicationContent(java.lang.String)
68    */
 
69  0 toggle public void setApplicationContent(String applicationContent) {
70  0 LOG.debug("Using MockWorkflowDocument");
71    }
72   
73    /**
74    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#clearAttributeContent()
75    */
 
76  0 toggle public void clearAttributeContent() {
77  0 LOG.debug("Using MockWorkflowDocument");
78    }
79   
80    /**
81    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getAttributeContent()
82    */
 
83  0 toggle public String getAttributeContent() {
84  0 LOG.debug("Using MockWorkflowDocument");
85  0 return null;
86    }
87   
88    /**
89    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#addAttributeDefinition(org.kuali.rice.kew.dto.WorkflowAttributeDefinitionDTO)
90    */
 
91  0 toggle public void addAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition) {
92  0 LOG.debug("Using MockWorkflowDocument");
93    }
94   
95    /**
96    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#removeAttributeDefinition(org.kuali.rice.kew.dto.WorkflowAttributeDefinitionDTO)
97    */
 
98  0 toggle public void removeAttributeDefinition(WorkflowAttributeDefinitionDTO attributeDefinition) {
99  0 LOG.debug("Using MockWorkflowDocument");
100    }
101   
102    /**
103    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#clearAttributeDefinitions()
104    */
 
105  0 toggle public void clearAttributeDefinitions() {
106  0 LOG.debug("Using MockWorkflowDocument");
107    }
108   
109    /**
110    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getAttributeDefinitions()
111    */
 
112  0 toggle public WorkflowAttributeDefinitionDTO[] getAttributeDefinitions() {
113  0 LOG.debug("Using MockWorkflowDocument");
114  0 return null;
115    }
116   
117    /**
118    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#addSearchableDefinition(org.kuali.rice.kew.dto.WorkflowAttributeDefinitionDTO)
119    */
 
120  0 toggle public void addSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition) {
121  0 LOG.debug("Using MockWorkflowDocument");
122   
123    }
124   
125    /**
126    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#removeSearchableDefinition(org.kuali.rice.kew.dto.WorkflowAttributeDefinitionDTO)
127    */
 
128  0 toggle public void removeSearchableDefinition(WorkflowAttributeDefinitionDTO searchableDefinition) {
129  0 LOG.debug("Using MockWorkflowDocument");
130   
131    }
132   
133    /**
134    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#clearSearchableDefinitions()
135    */
 
136  0 toggle public void clearSearchableDefinitions() {
137  0 LOG.debug("Using MockWorkflowDocument");
138   
139    }
140   
141    /**
142    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getSearchableDefinitions()
143    */
 
144  0 toggle public WorkflowAttributeDefinitionDTO[] getSearchableDefinitions() {
145  0 LOG.debug("Using MockWorkflowDocument");
146  0 return null;
147    }
148   
149    /**
150    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getRouteHeader()
151    */
 
152  0 toggle public RouteHeaderDTO getRouteHeader() {
153  0 LOG.debug("Using MockWorkflowDocument");
154  0 return null;
155    }
156   
157    /**
158    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getRouteHeaderId()
159    */
 
160  0 toggle public Long getRouteHeaderId() throws WorkflowException {
161  0 LOG.debug("Using MockWorkflowDocument");
162  0 return null;
163    }
164   
165    /**
166    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#setAppDocId(java.lang.String)
167    */
 
168  0 toggle public void setAppDocId(String appDocId) {
169  0 LOG.debug("Using MockWorkflowDocument");
170   
171    }
172   
173    /**
174    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getAppDocId()
175    */
 
176  0 toggle public String getAppDocId() {
177  0 LOG.debug("Using MockWorkflowDocument");
178  0 return null;
179    }
180   
181    /**
182    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getTitle()
183    */
 
184  0 toggle public String getTitle() {
185  0 LOG.debug("Using MockWorkflowDocument");
186  0 return null;
187    }
188   
189    /**
190    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#saveDocument(java.lang.String)
191    */
 
192  0 toggle public void saveDocument(String annotation) throws WorkflowException {
193  0 LOG.debug("Using MockWorkflowDocument");
194   
195    }
196   
197    /**
198    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#routeDocument(java.lang.String)
199    */
 
200  0 toggle public void routeDocument(String annotation) throws WorkflowException {
201  0 LOG.debug("Using MockWorkflowDocument");
202   
203    }
204   
205    /**
206    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#disapprove(java.lang.String)
207    */
 
208  0 toggle public void disapprove(String annotation) throws WorkflowException {
209  0 LOG.debug("Using MockWorkflowDocument");
210   
211    }
212   
213    /**
214    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#approve(java.lang.String)
215    */
 
216  0 toggle public void approve(String annotation) throws WorkflowException {
217  0 LOG.debug("Using MockWorkflowDocument");
218   
219    }
220   
221    /**
222    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#superUserApprove(java.lang.String)
223    */
 
224  0 toggle public void superUserApprove(String annotation) throws WorkflowException {
225  0 LOG.debug("Using MockWorkflowDocument");
226   
227    }
228   
229    /**
230    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#superUserActionRequestApprove(java.lang.Long,
231    * java.lang.String)
232    */
 
233  0 toggle public void superUserActionRequestApprove(Long actionRequestId, String annotation) throws WorkflowException {
234  0 LOG.debug("Using MockWorkflowDocument");
235    }
236   
237    /**
238    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#superUserCancel(java.lang.String)
239    */
 
240  0 toggle public void superUserCancel(String annotation) throws WorkflowException {
241  0 LOG.debug("Using MockWorkflowDocument");
242   
243    }
244   
245    /**
246    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#superUserDisapprove(java.lang.String)
247    */
 
248  0 toggle public void superUserDisapprove(String annotation) throws WorkflowException {
249  0 LOG.debug("Using MockWorkflowDocument");
250   
251    }
252   
253    /**
254    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#cancel(java.lang.String)
255    */
 
256  0 toggle public void cancel(String annotation) throws WorkflowException {
257  0 LOG.debug("Using MockWorkflowDocument");
258   
259    }
260   
261    /**
262    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#blanketApprove(java.lang.String)
263    */
 
264  0 toggle public void blanketApprove(String annotation) throws WorkflowException {
265  0 LOG.debug("Using MockWorkflowDocument");
266   
267    }
268   
269    /**
270    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#blanketApprove(java.lang.String, java.lang.Integer)
271    */
 
272  0 toggle public void blanketApprove(String annotation, Integer routeLevel) throws WorkflowException {
273  0 LOG.debug("Using MockWorkflowDocument");
274   
275    }
276   
277    /**
278    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#saveRoutingData()
279    */
 
280  0 toggle public void saveRoutingData() throws WorkflowException {
281  0 LOG.debug("Using MockWorkflowDocument");
282   
283    }
284   
285    /**
286    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#acknowledge(java.lang.String)
287    */
 
288  0 toggle public void acknowledge(String annotation) throws WorkflowException {
289  0 LOG.debug("Using MockWorkflowDocument");
290   
291    }
292   
293    /**
294    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#fyi()
295    */
 
296  0 toggle public void fyi() throws WorkflowException {
297  0 LOG.debug("Using MockWorkflowDocument");
298   
299    }
300   
301    /**
302    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#delete()
303    */
 
304  0 toggle public void delete() throws WorkflowException {
305  0 LOG.debug("Using MockWorkflowDocument");
306   
307    }
308   
309    /**
310    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#refreshContent()
311    */
 
312  0 toggle public void refreshContent() throws WorkflowException {
313  0 LOG.debug("Using MockWorkflowDocument");
314   
315    }
316   
317    /**
318    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#adHocRouteDocumentToPrincipal(java.lang.String,
319    * java.lang.String, int, java.lang.String, org.kuali.rice.kew.dto.UserIdDTO, java.lang.String, boolean)
320    */
 
321  0 toggle public void adHocRouteDocumentToPrincipal(String actionRequested, String routeTypeName, String annotation, String principalId, String responsibilityDesc, boolean forceAction) throws WorkflowException {
322  0 LOG.debug("Using MockWorkflowDocument");
323   
324    }
325   
 
326  0 toggle public void adHocRouteDocumentToWorkgroup(String actionRequested, String routeTypeName, int priority, String annotation, String groupId, String responsibilityDesc, boolean forceAction) throws WorkflowException {
327  0 LOG.debug("Using MockWorkflowDocument");
328   
329    }
330   
331    /**
332    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#setTitle(java.lang.String)
333    */
 
334  0 toggle public void setTitle(String title) throws WorkflowException {
335  0 LOG.debug("Using MockWorkflowDocument");
336   
337    }
338   
339    /**
340    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getDocumentType()
341    */
 
342  0 toggle public String getDocumentType() {
343  0 LOG.debug("Using MockWorkflowDocument");
344  0 return null;
345    }
346   
347    /**
348    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isAdHocRequested()
349    */
 
350  0 toggle public boolean isAdHocRequested() {
351  0 LOG.debug("Using MockWorkflowDocument");
352  0 return false;
353    }
354   
355    /**
356    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isAcknowledgeRequested()
357    */
 
358  0 toggle public boolean isAcknowledgeRequested() {
359  0 LOG.debug("Using MockWorkflowDocument");
360  0 return false;
361    }
362   
363    /**
364    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isApprovalRequested()
365    */
 
366  0 toggle public boolean isApprovalRequested() {
367  0 LOG.debug("Using MockWorkflowDocument");
368  0 return false;
369    }
370   
371    /**
372    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isCompletionRequested()
373    */
 
374  0 toggle public boolean isCompletionRequested() {
375  0 LOG.debug("Using MockWorkflowDocument");
376  0 return false;
377    }
378   
379    /**
380    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isFYIRequested()
381    */
 
382  0 toggle public boolean isFYIRequested() {
383  0 LOG.debug("Using MockWorkflowDocument");
384  0 return false;
385    }
386   
387    /**
388    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#isBlanketApproveCapable()
389    */
 
390  0 toggle public boolean isBlanketApproveCapable() {
391  0 LOG.debug("Using MockWorkflowDocument");
392  0 return false;
393    }
394   
395    /**
396    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getDocRouteLevel()
397    */
 
398  0 toggle public Integer getDocRouteLevel() {
399  0 LOG.debug("Using MockWorkflowDocument");
400  0 return null;
401    }
402   
403    /**
404    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getDocRouteLevelName()
405    */
 
406  0 toggle public String getDocRouteLevelName() throws WorkflowException {
407  0 LOG.debug("Using MockWorkflowDocument");
408  0 return null;
409    }
410   
411    /**
412    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getRouteTypeName()
413    */
 
414  0 toggle public String getRouteTypeName() throws WorkflowException {
415  0 LOG.debug("Using MockWorkflowDocument");
416  0 return null;
417    }
418   
419    /**
420    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#complete(java.lang.String)
421    */
 
422  0 toggle public void complete(String annotation) throws WorkflowException {
423  0 LOG.debug("Using MockWorkflowDocument");
424   
425    }
426   
427    /**
428    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#returnToPreviousNode(java.lang.String, java.lang.String)
429    */
 
430  0 toggle public void returnToPreviousNode(String annotation, String nodeName) throws WorkflowException {
431  0 LOG.debug("Using MockWorkflowDocument");
432    }
433   
434    /**
435    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#returnToPreviousNode(java.lang.String, org.kuali.rice.kew.dto.ReturnPointDTO)
436    */
 
437  0 toggle public void returnToPreviousNode(String annotation, ReturnPointDTO returnPoint) throws WorkflowException {
438  0 LOG.debug("Using MockWorkflowDocument");
439    }
440   
441    /**
442    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#returnToPreviousRouteLevel(java.lang.String,
443    * java.lang.Integer)
444    */
 
445  0 toggle public void returnToPreviousRouteLevel(String annotation, Integer destRouteLevel) throws WorkflowException {
446  0 LOG.debug("Using MockWorkflowDocument");
447   
448    }
449   
450    /**
451    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#logDocumentAction(java.lang.String)
452    */
 
453  0 toggle public void logDocumentAction(String annotation) throws WorkflowException {
454  0 LOG.debug("Using MockWorkflowDocument");
455   
456    }
457   
458    /**
459    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsInitiated()
460    */
 
461  0 toggle public boolean stateIsInitiated() {
462  0 LOG.debug("Using MockWorkflowDocument");
463  0 return false;
464    }
465   
466    /**
467    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsSaved()
468    */
 
469  0 toggle public boolean stateIsSaved() {
470  0 LOG.debug("Using MockWorkflowDocument");
471  0 return false;
472    }
473   
474    /**
475    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsEnroute()
476    */
 
477  0 toggle public boolean stateIsEnroute() {
478  0 LOG.debug("Using MockWorkflowDocument");
479  0 return false;
480    }
481   
482    /**
483    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsFinal()
484    */
 
485  0 toggle public boolean stateIsFinal() {
486  0 LOG.debug("Using MockWorkflowDocument");
487  0 return false;
488    }
489   
490    /**
491    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsException()
492    */
 
493  0 toggle public boolean stateIsException() {
494  0 LOG.debug("Using MockWorkflowDocument");
495  0 return false;
496    }
497   
498    /**
499    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsCanceled()
500    */
 
501  0 toggle public boolean stateIsCanceled() {
502  0 LOG.debug("Using MockWorkflowDocument");
503  0 return false;
504    }
505   
506    /**
507    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsDisapproved()
508    */
 
509  0 toggle public boolean stateIsDisapproved() {
510  0 LOG.debug("Using MockWorkflowDocument");
511  0 return false;
512    }
513   
514    /**
515    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsApproved()
516    */
 
517  0 toggle public boolean stateIsApproved() {
518  0 LOG.debug("Using MockWorkflowDocument");
519  0 return false;
520    }
521   
522    /**
523    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#stateIsProcessed()
524    */
 
525  0 toggle public boolean stateIsProcessed() {
526  0 LOG.debug("Using MockWorkflowDocument");
527  0 return false;
528    }
529   
530    /**
531    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getStatusDisplayValue()
532    */
 
533  0 toggle public String getStatusDisplayValue() {
534  0 LOG.debug("Using MockWorkflowDocument");
535  0 return null;
536    }
537   
538    /**
539    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getCreateDate()
540    */
 
541  0 toggle public Timestamp getCreateDate() {
542  0 LOG.debug("Using MockWorkflowDocument");
543  0 return null;
544    }
545   
546    /**
547    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#userIsInitiator(org.kuali.rice.kim.bo.Person)
548    */
 
549  0 toggle public boolean userIsInitiator(Person user) {
550  0 LOG.debug("Using MockWorkflowDocument");
551  0 return false;
552    }
553   
554    /**
555    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#userIsRoutedByUser(org.kuali.rice.kim.bo.Person)
556    */
 
557  0 toggle public boolean userIsRoutedByUser(Person user) {
558  0 LOG.debug("Using MockWorkflowDocument");
559  0 return false;
560    }
561   
562    /**
563    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getNodeNames()
564    */
 
565  0 toggle public String[] getNodeNames() throws WorkflowException {
566  0 LOG.debug("Using MockWorkflowDocument");
567  0 return null;
568    }
569   
570    /**
571    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getCurrentRouteNodeNames()
572    */
 
573  0 toggle public String getCurrentRouteNodeNames() {
574  0 LOG.debug("Using MockWorkflowDocument");
575  0 return null;
576    }
577   
578    /**
579    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#getAllPriorApprovers()
580    */
 
581  0 toggle public Set<Person> getAllPriorApprovers() throws WorkflowException {
582  0 return null;
583    }
584   
585    /**
586    * This overridden method ...
587    *
588    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#setClearFutureRequests()
589    */
 
590  0 toggle public void setClearFutureRequests() throws WorkflowException {
591  0 LOG.debug("Using MockWorkflowDocument");
592    }
593   
594    /**
595    * This overridden method ...
596    *
597    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#setDoNotReceiveFutureRequests()
598    */
 
599  0 toggle public void setDoNotReceiveFutureRequests() throws WorkflowException {
600  0 LOG.debug("Using MockWorkflowDocument");
601    }
602   
603    /**
604    * This overridden method ...
605    *
606    * @see org.kuali.rice.kns.workflow.service.KualiWorkflowDocument#setReceiveFutureRequests()
607    */
 
608  0 toggle public void setReceiveFutureRequests() throws WorkflowException {
609  0 LOG.debug("Using MockWorkflowDocument");
610    }
611   
612    }
613