|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CourseRevenueInfo | Line # 45 | 14 | 0% | 12 | 2 | 92.9% |
0.9285714
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (15) | |||
| Result | |||
|
0.8214286
|
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
|
1 PASS | |
|
0.78571427
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
|
1 PASS | |
| 1 | /* | |
| 2 | * Copyright 2009 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.lum.course.dto; | |
| 17 | ||
| 18 | import java.io.Serializable; | |
| 19 | import java.util.ArrayList; | |
| 20 | import java.util.HashMap; | |
| 21 | import java.util.List; | |
| 22 | import java.util.Map; | |
| 23 | ||
| 24 | import javax.xml.bind.annotation.XmlAccessType; | |
| 25 | import javax.xml.bind.annotation.XmlAccessorType; | |
| 26 | import javax.xml.bind.annotation.XmlAttribute; | |
| 27 | import javax.xml.bind.annotation.XmlElement; | |
| 28 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
| 29 | ||
| 30 | import org.kuali.student.common.dto.HasAttributes; | |
| 31 | import org.kuali.student.common.dto.MetaInfo; | |
| 32 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
| 33 | import org.kuali.student.lum.lu.dto.AffiliatedOrgInfo; | |
| 34 | ||
| 35 | /** | |
| 36 | * Detailed information about revenue collected from the course. | |
| 37 | * | |
| 38 | * @Author KSContractMojo | |
| 39 | * @Author Daniel Epstein | |
| 40 | * @Since Mon Jul 26 14:12:38 EDT 2010 | |
| 41 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/courseRevenueInfo+Structure">CourseReenueInfo</> | |
| 42 | * | |
| 43 | */ | |
| 44 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 45 | public class CourseRevenueInfo implements Serializable, HasAttributes { | |
| 46 | ||
| 47 | private static final long serialVersionUID = 1L; | |
| 48 | ||
| 49 | @XmlAttribute | |
| 50 | private String id; | |
| 51 | ||
| 52 | @XmlElement | |
| 53 | private String feeType; | |
| 54 | ||
| 55 | @XmlElement | |
| 56 | private List<AffiliatedOrgInfo> affiliatedOrgs; | |
| 57 | ||
| 58 | @XmlElement | |
| 59 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
| 60 | private Map<String, String> attributes; | |
| 61 | ||
| 62 | @XmlElement | |
| 63 | private MetaInfo metaInfo; | |
| 64 | ||
| 65 | ||
| 66 | /** | |
| 67 | * Identifier for the clu fee record. | |
| 68 | */ | |
| 69 | 52 |
public String getId() { |
| 70 | 52 | return id; |
| 71 | } | |
| 72 | ||
| 73 | 138 |
public void setId(String id) { |
| 74 | 138 | this.id = id; |
| 75 | } | |
| 76 | ||
| 77 | /** | |
| 78 | * A code that identifies the type of the fee with which this revenue is associated with. | |
| 79 | */ | |
| 80 | 2 |
public String getFeeType() { |
| 81 | 2 | return feeType; |
| 82 | } | |
| 83 | ||
| 84 | 124 |
public void setFeeType(String feeType) { |
| 85 | 124 | this.feeType = feeType; |
| 86 | } | |
| 87 | ||
| 88 | /** | |
| 89 | * List of affiliated organizations. | |
| 90 | */ | |
| 91 | 80 |
public List<AffiliatedOrgInfo> getAffiliatedOrgs() { |
| 92 | 80 | if (affiliatedOrgs == null) { |
| 93 | 0 | affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0); |
| 94 | } | |
| 95 | 80 | return affiliatedOrgs; |
| 96 | } | |
| 97 | ||
| 98 | 124 |
public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) { |
| 99 | 124 | this.affiliatedOrgs = affiliatedOrgs; |
| 100 | } | |
| 101 | ||
| 102 | /** | |
| 103 | * List of key/value pairs, typically used for dynamic attributes. | |
| 104 | */ | |
| 105 | 52 |
public Map<String, String> getAttributes() { |
| 106 | 52 | if (attributes == null) { |
| 107 | 2 | attributes = new HashMap<String, String>(); |
| 108 | } | |
| 109 | 52 | return attributes; |
| 110 | } | |
| 111 | ||
| 112 | 122 |
public void setAttributes(Map<String, String> attributes) { |
| 113 | 122 | this.attributes = attributes; |
| 114 | } | |
| 115 | ||
| 116 | /** | |
| 117 | * Create and last update info for the structure. This is optional and | |
| 118 | * treated as read only since the data is set by the internals of the service | |
| 119 | * during maintenance operations. | |
| 120 | */ | |
| 121 | 52 |
public MetaInfo getMetaInfo() { |
| 122 | 52 | return metaInfo; |
| 123 | } | |
| 124 | ||
| 125 | 90 |
public void setMetaInfo(MetaInfo metaInfo) { |
| 126 | 90 | this.metaInfo = metaInfo; |
| 127 | } | |
| 128 | } | |
|
||||||||||||