|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CourseExpenditureInfo | Line # 43 | 8 | 0% | 6 | 2 | 87.5% |
0.875
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (15) | |||
| Result | |||
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersion
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetFirstVersion
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseVersioning
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCurrentVersionOnDate
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersions
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionsInDateRange
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testUpdateCourse
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetVersionBySequenceNumber
|
1 PASS | |
|
0.875
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDeleteCourse
|
1 PASS | |
|
0.75
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreateCourse
|
1 PASS | |
|
0.75
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testDynamicAttributes
|
1 PASS | |
|
0.75
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCourseCrossListing
|
1 PASS | |
|
0.75
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testGetCourse
|
1 PASS | |
|
0.75
|
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
org.kuali.student.lum.course.service.impl.TestCourseInfoDictionary.testCourseInfoValidation
|
1 PASS | |
|
0.75
|
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
org.kuali.student.lum.course.service.impl.TestCourseServiceImpl.testCreditOptions
|
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.XmlElement; | |
| 27 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | |
| 28 | ||
| 29 | import org.kuali.student.core.dto.HasAttributes; | |
| 30 | import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; | |
| 31 | import org.kuali.student.lum.lu.dto.AffiliatedOrgInfo; | |
| 32 | ||
| 33 | /** | |
| 34 | * Detailed information about expenditure for the course. | |
| 35 | * | |
| 36 | * @Author KSContractMojo | |
| 37 | * @Author Daniel Epstein | |
| 38 | * @Since Mon Jul 26 14:12:42 EDT 2010 | |
| 39 | * @See <a href="https://test.kuali.org/confluence/display/KULSTU/courseExpenditureInfo+Structure">CourseExpenditureInfo</> | |
| 40 | * | |
| 41 | */ | |
| 42 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 43 | public class CourseExpenditureInfo implements Serializable, HasAttributes { | |
| 44 | ||
| 45 | private static final long serialVersionUID = 1L; | |
| 46 | ||
| 47 | @XmlElement | |
| 48 | private List<AffiliatedOrgInfo> affiliatedOrgs; | |
| 49 | ||
| 50 | @XmlElement | |
| 51 | @XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) | |
| 52 | private Map<String, String> attributes; | |
| 53 | ||
| 54 | /** | |
| 55 | * List of affiliated organizations. | |
| 56 | */ | |
| 57 | 29 |
public List<AffiliatedOrgInfo> getAffiliatedOrgs() { |
| 58 | 29 | if (affiliatedOrgs == null) { |
| 59 | 0 | affiliatedOrgs = new ArrayList<AffiliatedOrgInfo>(0); |
| 60 | } | |
| 61 | 29 | return affiliatedOrgs; |
| 62 | } | |
| 63 | ||
| 64 | 62 |
public void setAffiliatedOrgs(List<AffiliatedOrgInfo> affiliatedOrgs) { |
| 65 | 62 | this.affiliatedOrgs = affiliatedOrgs; |
| 66 | } | |
| 67 | ||
| 68 | /** | |
| 69 | * List of key/value pairs, typically used for dynamic attributes. | |
| 70 | */ | |
| 71 | 26 |
public Map<String, String> getAttributes() { |
| 72 | 26 | if (attributes == null) { |
| 73 | 10 | attributes = new HashMap<String, String>(); |
| 74 | } | |
| 75 | 26 | return attributes; |
| 76 | } | |
| 77 | ||
| 78 | 16 |
public void setAttributes(Map<String, String> attributes) { |
| 79 | 16 | this.attributes = attributes; |
| 80 | } | |
| 81 | } | |
|
||||||||||||