| 1 |  |  | 
            
  
    | 2 |  |  | 
            
  
    | 3 |  |  | 
            
  
    | 4 |  |  | 
            
  
    | 5 |  |  | 
            
  
    | 6 |  |  | 
            
  
    | 7 |  |  | 
            
  
    | 8 |  |  | 
            
  
    | 9 |  |  | 
            
  
    | 10 |  |  | 
            
  
    | 11 |  |  | 
            
  
    | 12 |  |  | 
            
  
    | 13 |  |  | 
            
  
    | 14 |  |  | 
            
  
    | 15 |  |  | 
            
  
    | 16 |  |  | 
            
  
    | 17 |  | package mocks; | 
            
  
    | 18 |  |  | 
            
  
    | 19 |  | import java.util.List; | 
            
  
    | 20 |  |  | 
            
  
    | 21 |  | import org.kuali.rice.kew.postprocessor.ActionTakenEvent; | 
            
  
    | 22 |  | import org.kuali.rice.kew.postprocessor.AfterProcessEvent; | 
            
  
    | 23 |  | import org.kuali.rice.kew.postprocessor.BeforeProcessEvent; | 
            
  
    | 24 |  | import org.kuali.rice.kew.postprocessor.DeleteEvent; | 
            
  
    | 25 |  | import org.kuali.rice.kew.postprocessor.DocumentLockingEvent; | 
            
  
    | 26 |  | import org.kuali.rice.kew.postprocessor.DocumentRouteLevelChange; | 
            
  
    | 27 |  | import org.kuali.rice.kew.postprocessor.DocumentRouteStatusChange; | 
            
  
    | 28 |  | import org.kuali.rice.kew.postprocessor.PostProcessor; | 
            
  
    | 29 |  | import org.kuali.rice.kew.postprocessor.ProcessDocReport; | 
            
  
    | 30 |  |  | 
            
  
    | 31 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 35 (35) | Complexity: 16 | Complexity Density: 0.84 |  | 
  
  
    | 32 |  | public class MockPostProcessor implements PostProcessor { | 
            
  
    | 33 |  |  | 
            
  
    | 34 |  | private boolean processDocReportResult = true; | 
            
  
    | 35 |  | private boolean actionTakenResult = true; | 
            
  
    | 36 |  | private boolean processMethodsDocReportResult = true; | 
            
  
    | 37 |  | private List<Long> documentIdsToLockResult = null; | 
            
  
    | 38 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 39 | 0 |  public MockPostProcessor() {... | 
            
  
    | 40 | 0 | this(true); | 
            
  
    | 41 |  | } | 
            
  
    | 42 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 43 | 0 |  public MockPostProcessor(boolean processDocReportResult) {... | 
            
  
    | 44 | 0 | this(processDocReportResult, true); | 
            
  
    | 45 |  | } | 
            
  
    | 46 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 47 | 0 |  public MockPostProcessor(boolean processDocReportResult, boolean actionTakenResult) {... | 
            
  
    | 48 | 0 | this(processDocReportResult, actionTakenResult, true); | 
            
  
    | 49 |  | } | 
            
  
    | 50 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 51 | 0 |  public MockPostProcessor(boolean processDocReportResult, boolean actionTakenResult, boolean processMethodsDocReportResult) {... | 
            
  
    | 52 | 0 | this(processDocReportResult, actionTakenResult, processMethodsDocReportResult, null); | 
            
  
    | 53 |  | } | 
            
  
    | 54 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 4 (4) | Complexity: 1 | Complexity Density: 0.25 |  | 
  
  
    | 55 | 0 |  public MockPostProcessor(boolean processDocReportResult, boolean actionTakenResult, boolean processMethodsDocReportResult, List<Long> documentIdsToLockResult) {... | 
            
  
    | 56 | 0 | this.processDocReportResult = processDocReportResult; | 
            
  
    | 57 | 0 | this.actionTakenResult = actionTakenResult; | 
            
  
    | 58 | 0 | this.processMethodsDocReportResult = processMethodsDocReportResult; | 
            
  
    | 59 | 0 | this.documentIdsToLockResult = documentIdsToLockResult; | 
            
  
    | 60 |  | } | 
            
  
    | 61 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 62 | 0 |  public ProcessDocReport doDeleteRouteHeader(DeleteEvent event) throws Exception {... | 
            
  
    | 63 | 0 | return new ProcessDocReport(processDocReportResult, "testing"); | 
            
  
    | 64 |  | } | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 65 | 0 |  public ProcessDocReport doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) throws Exception {... | 
            
  
    | 66 | 0 | return new ProcessDocReport(processDocReportResult, "testing"); | 
            
  
    | 67 |  | } | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 68 | 0 |  public ProcessDocReport doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) throws Exception {... | 
            
  
    | 69 | 0 | return new ProcessDocReport(processDocReportResult, "testing"); | 
            
  
    | 70 |  | } | 
            
  
    | 71 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 72 | 0 |  public ProcessDocReport doActionTaken(ActionTakenEvent event) throws Exception {... | 
            
  
    | 73 | 0 | return new ProcessDocReport(actionTakenResult, "testing"); | 
            
  
    | 74 |  | } | 
            
  
    | 75 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 76 | 0 |  public ProcessDocReport beforeProcess(BeforeProcessEvent event) throws Exception {... | 
            
  
    | 77 | 0 | return new ProcessDocReport(processMethodsDocReportResult, "testing"); | 
            
  
    | 78 |  | } | 
            
  
    | 79 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 80 | 0 |  public ProcessDocReport afterProcess(AfterProcessEvent event) throws Exception {... | 
            
  
    | 81 | 0 | return new ProcessDocReport(processMethodsDocReportResult, "testing"); | 
            
  
    | 82 |  | } | 
            
  
    | 83 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 84 | 0 |  public List<Long> getDocumentIdsToLock(DocumentLockingEvent lockingEvent) throws Exception {... | 
            
  
    | 85 | 0 | return documentIdsToLockResult; | 
            
  
    | 86 |  | } | 
            
  
    | 87 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 88 | 0 |  public void setProcessDocReportResult(boolean processDocReportResult) {... | 
            
  
    | 89 | 0 | this.processDocReportResult = processDocReportResult; | 
            
  
    | 90 |  | } | 
            
  
    | 91 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 92 | 0 |  public void setActionTakenResult(boolean actionTakenResult) {... | 
            
  
    | 93 | 0 | this.actionTakenResult = actionTakenResult; | 
            
  
    | 94 |  | } | 
            
  
    | 95 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 96 | 0 |  public void setProcessMethodsDocReportResult(boolean processMethodsDocReportResult) {... | 
            
  
    | 97 | 0 | this.processMethodsDocReportResult = processMethodsDocReportResult; | 
            
  
    | 98 |  | } | 
            
  
    | 99 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 100 | 0 |  public void setDocumentIdsToLockResult(List<Long> documentIdsToLockResult) {... | 
            
  
    | 101 | 0 | this.documentIdsToLockResult = documentIdsToLockResult; | 
            
  
    | 102 |  | } | 
            
  
    | 103 |  |  | 
            
  
    | 104 |  | } |