| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LuCodeInfo | Line # 37 | 14 | 0% | 13 | 0 | 100% | 1.0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (22) | |||
| Result | |||
| 1.0 | org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluCrud  org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluCrud | 1 PASS | |
| 1.0 | org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testVersioning  org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testVersioning | 1 PASS | |
| 0.89285713 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse | 1 PASS | |
| 0.89285713 | org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse  org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateCoreProgram | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDiscipline | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateVariationsByMajorDiscipline | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateCoreProgram  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateCoreProgram | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDiscipline | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testUpdateMajorDisciplineRemoveRule | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateVariationsByMajorDiscipline | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteVariationsByMajorDiscipline | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCoreProgramVersioning | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testDeleteCoreProgram | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateMajorDisciplineDeleteRule | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testMajorDisciplineVersioning | 1 PASS | |
| 0.85714287 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testCreateBaccCredentialProgram | 1 PASS | |
| 0.78571427 | org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluValidation  org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testCluValidation | 1 PASS | |
| 0.5714286 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetCoreProgram  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetCoreProgram | 1 PASS | |
| 0.5714286 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetMajorDiscipline | 1 PASS | |
| 0.5714286 | org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId  org.kuali.student.lum.program.service.impl.TestProgramServiceImpl.testGetVariationsByMajorDisciplineId | 1 PASS | |
| 0.42857143 | org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetCluSetTreeView_dynamicCluSet  org.kuali.student.lum.lu.service.impl.TestLuServiceImpl.testGetCluSetTreeView_dynamicCluSet | 1 PASS | |
| 1 | /** | |
| 2 | * Copyright 2010 The Kuali Foundation Licensed under the | |
| 3 | * Educational Community License, Version 2.0 (the "License"); you may | |
| 4 | * not use this file except in compliance with the License. You may | |
| 5 | * obtain a copy of the License at | |
| 6 | * | |
| 7 | * http://www.osedu.org/licenses/ECL-2.0 | |
| 8 | * | |
| 9 | * Unless required by applicable law or agreed to in writing, | |
| 10 | * software distributed under the License is distributed on an "AS IS" | |
| 11 | * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | |
| 12 | * or implied. See the License for the specific language governing | |
| 13 | * permissions and limitations under the License. | |
| 14 | */ | |
| 15 | ||
| 16 | package org.kuali.student.lum.lu.dto; | |
| 17 | ||
| 18 | import java.io.Serializable; | |
| 19 | import java.util.HashMap; | |
| 20 | import java.util.Map; | |
| 21 | ||
| 22 | import javax.xml.bind.annotation.XmlAccessType; | |
| 23 | import javax.xml.bind.annotation.XmlAccessorType; | |
| 24 | import javax.xml.bind.annotation.XmlAttribute; | |
| 25 | import javax.xml.bind.annotation.XmlElement; | |
| 26 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
| 27 | ||
| 28 | import org.kuali.student.core.dto.HasAttributes; | |
| 29 | import org.kuali.student.core.dto.Idable; | |
| 30 | import org.kuali.student.core.dto.MetaInfo; | |
| 31 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
| 32 | ||
| 33 | /** | |
| 34 | *Detailed information about learning unit codes. | |
| 35 | */ | |
| 36 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 37 | public class LuCodeInfo implements Serializable, Idable, HasAttributes { | |
| 38 | ||
| 39 | private static final long serialVersionUID = 1L; | |
| 40 | ||
| 41 | @XmlElement | |
| 42 | private String descr; | |
| 43 | ||
| 44 | @XmlAttribute | |
| 45 | private String type; | |
| 46 | ||
| 47 | @XmlElement | |
| 48 | private String value; | |
| 49 | ||
| 50 | @XmlElement | |
| 51 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
| 52 | private Map<String, String> attributes; | |
| 53 | ||
| 54 | @XmlElement | |
| 55 | private MetaInfo metaInfo; | |
| 56 | ||
| 57 | @XmlAttribute | |
| 58 | private String id; | |
| 59 | ||
| 60 | /** | |
| 61 | * The description of the code. | |
| 62 | */ | |
| 63 | 492 |  public String getDescr() { | 
| 64 | 492 | return descr; | 
| 65 | } | |
| 66 | ||
| 67 | 744 |  public void setDescr(String descr) { | 
| 68 | 744 | this.descr = descr; | 
| 69 | } | |
| 70 | ||
| 71 | /** | |
| 72 | * The code's type | |
| 73 | */ | |
| 74 | 937 |  public void setType(String type) { | 
| 75 | 937 | this.type = type; | 
| 76 | } | |
| 77 | ||
| 78 | 1818 |  public String getType() { | 
| 79 | 1818 | return type; | 
| 80 | } | |
| 81 | ||
| 82 | /** | |
| 83 | * The code's value. | |
| 84 | */ | |
| 85 | 767 |  public String getValue() { | 
| 86 | 767 | return value; | 
| 87 | } | |
| 88 | ||
| 89 | 939 |  public void setValue(String value) { | 
| 90 | 939 | this.value = value; | 
| 91 | } | |
| 92 | ||
| 93 | /** | |
| 94 | * List of key/value pairs, typically used for dynamic attributes. | |
| 95 | */ | |
| 96 | 277 |  @Override | 
| 97 | public Map<String, String> getAttributes() { | |
| 98 | 277 | if (attributes == null) { | 
| 99 | 11 | attributes = new HashMap<String, String>(); | 
| 100 | } | |
| 101 | 277 | return attributes; | 
| 102 | } | |
| 103 | ||
| 104 | 927 |  @Override | 
| 105 | public void setAttributes(Map<String, String> attributes) { | |
| 106 | 927 | this.attributes = attributes; | 
| 107 | } | |
| 108 | ||
| 109 | /** | |
| 110 | * Create and last update info for the structure. This is optional and treated as read only since the data is set by the internals of the service during maintenance operations. | |
| 111 | */ | |
| 112 | 29 |  public MetaInfo getMetaInfo() { | 
| 113 | 29 | return metaInfo; | 
| 114 | } | |
| 115 | ||
| 116 | 736 |  public void setMetaInfo(MetaInfo metaInfo) { | 
| 117 | 736 | this.metaInfo = metaInfo; | 
| 118 | } | |
| 119 | ||
| 120 | /** | |
| 121 | * Unique identifier for an LU code record. | |
| 122 | */ | |
| 123 | 391 |  @Override | 
| 124 | public String getId() { | |
| 125 | 391 | return id; | 
| 126 | } | |
| 127 | ||
| 128 | 779 |  @Override | 
| 129 | public void setId(String id) { | |
| 130 | 779 | this.id = id; | 
| 131 | } | |
| 132 | } | |
| 
 | ||||||||||||