|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BaseDTOAssemblyNode | Line # 32 | 14 | 0% | 12 | 4 | 85.2% |
0.8518519
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BaseDTOAssemblyNode.NodeOperation | Line # 34 | 0 | - | 0 | 0 | - |
-1.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (32) | |||
| Result | |||
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateProgramRequirement
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateProgramRequirement
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateBaccCredentialProgram
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateBaccCredentialProgram
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateCoreProgram
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateCoreProgram
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteProgramRequirement
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteProgramRequirement
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreditsProgramRequirement
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreditsProgramRequirement
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateProgramRequirement
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateProgramRequirement
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning
org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
|
1 PASS | |
|
0.8518519
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
|
1 PASS | |
| 1 | /* | |
| 2 | * Copyright 2008 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 1.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/ecl1.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.student.common.assembly; | |
| 17 | ||
| 18 | import java.util.ArrayList; | |
| 19 | import java.util.List; | |
| 20 | ||
| 21 | ||
| 22 | /** | |
| 23 | * A node in the sorted map of disassembled base DTOs. The node provides the | |
| 24 | * data for the base DTO along with the operation information on the data. | |
| 25 | * | |
| 26 | * The consumer of the map of these nodes is required to process the nodes in | |
| 27 | * sorted order to guarantee data integrity within the base DTOs. | |
| 28 | * | |
| 29 | * @author Kuali Student Team | |
| 30 | * | |
| 31 | */ | |
| 32 | public class BaseDTOAssemblyNode<E,T> { | |
| 33 | ||
| 34 | public enum NodeOperation { | |
| 35 | CREATE, UPDATE, DELETE; | |
| 36 | } | |
| 37 | ||
| 38 | protected NodeOperation operation; | |
| 39 | ||
| 40 | protected E businessDTORef; | |
| 41 | ||
| 42 | protected T nodeData; | |
| 43 | ||
| 44 | ||
| 45 | protected BOAssembler<E, T> assembler; | |
| 46 | ||
| 47 | protected List<BaseDTOAssemblyNode<?,?>> childNodes; | |
| 48 | ||
| 49 | 3368 |
public BaseDTOAssemblyNode(BOAssembler<E, T> assembler) { |
| 50 | 3368 | super(); |
| 51 | 3368 | this.assembler = assembler; |
| 52 | } | |
| 53 | ||
| 54 | /** | |
| 55 | * @return the nodeData | |
| 56 | */ | |
| 57 | 4135 |
public T getNodeData() { |
| 58 | 4135 | return nodeData; |
| 59 | } | |
| 60 | ||
| 61 | /** | |
| 62 | * @param nodeData | |
| 63 | * the nodeData to set | |
| 64 | */ | |
| 65 | 3358 |
public void setNodeData(T nodeData) { |
| 66 | 3358 | this.nodeData = nodeData; |
| 67 | } | |
| 68 | ||
| 69 | /** | |
| 70 | * @return the operation | |
| 71 | */ | |
| 72 | 10046 |
public NodeOperation getOperation() { |
| 73 | 10046 | return operation; |
| 74 | } | |
| 75 | ||
| 76 | /** | |
| 77 | * @param operation | |
| 78 | * the operation to set | |
| 79 | */ | |
| 80 | 3367 |
public void setOperation(NodeOperation operation) { |
| 81 | 3367 | this.operation = operation; |
| 82 | } | |
| 83 | ||
| 84 | 5183 |
public List<BaseDTOAssemblyNode<?,?>> getChildNodes() { |
| 85 | 5183 | if (childNodes == null) { |
| 86 | 3363 | childNodes = new ArrayList<BaseDTOAssemblyNode<?,?>>(); |
| 87 | } | |
| 88 | 5183 | return childNodes; |
| 89 | } | |
| 90 | ||
| 91 | 0 |
public void setChildNodes(List<BaseDTOAssemblyNode<?,?>> childNodes) { |
| 92 | 0 | this.childNodes = childNodes; |
| 93 | } | |
| 94 | ||
| 95 | /** | |
| 96 | * @return the assembler | |
| 97 | */ | |
| 98 | 1118 |
public BOAssembler<E, T> getAssembler() { |
| 99 | 1118 | return assembler; |
| 100 | } | |
| 101 | ||
| 102 | /** | |
| 103 | * @param assembler the assembler to set | |
| 104 | */ | |
| 105 | 0 |
public void setAssembler(BOAssembler<E, T> assembler) { |
| 106 | 0 | this.assembler = assembler; |
| 107 | } | |
| 108 | ||
| 109 | /** | |
| 110 | * @return the businessDTORef | |
| 111 | */ | |
| 112 | 1832 |
public E getBusinessDTORef() { |
| 113 | 1832 | return businessDTORef; |
| 114 | } | |
| 115 | ||
| 116 | /** | |
| 117 | * @param businessDTORef the businessDTORef to set | |
| 118 | */ | |
| 119 | 961 |
public void setBusinessDTORef(E businessDTORef) { |
| 120 | 961 | this.businessDTORef = businessDTORef; |
| 121 | } | |
| 122 | ||
| 123 | } | |
|
||||||||||||