1 package org.kuali.student.common.conversion; 2 3 import java.util.Date; 4 import java.util.HashMap; 5 import java.util.Map; 6 7 import org.kuali.student.r2.common.dto.AmountInfo; 8 import org.kuali.student.r2.common.dto.MetaInfo; 9 import org.kuali.student.r2.common.dto.RichTextInfo; 10 11 public class R1TestDataUtil { 12 13 public static RichTextInfo getRichTextInfoData() { 14 RichTextInfo r1RichText = new RichTextInfo(); 15 r1RichText.setPlain("R1 Plain"); 16 r1RichText.setFormatted("R1 Formatted"); 17 return r1RichText; 18 } 19 20 public static Map<String, String> getAttributeData() { 21 Map<String, String> r1Attributes = new HashMap<String, String>(); 22 r1Attributes.put("R1-Key", "R1-Value"); 23 return r1Attributes; 24 } 25 26 public static MetaInfo getMetadataInfoData() { 27 MetaInfo r1MetaInfo = new MetaInfo(); 28 r1MetaInfo.setCreateId("R1 Meta Create Id"); 29 r1MetaInfo.setCreateTime(new Date()); 30 r1MetaInfo.setUpdateId("R1 Update Id"); 31 r1MetaInfo.setUpdateTime(new Date()); 32 r1MetaInfo.setVersionInd("R1 Meta Info Version Id"); 33 return r1MetaInfo; 34 } 35 36 public static AmountInfo getAmountInfoData() { 37 AmountInfo r1AmountInfo = new AmountInfo(); 38 r1AmountInfo.setUnitQuantity("R1 Unit Quantity"); 39 r1AmountInfo.setUnitTypeKey("R1 Unit Type"); 40 return r1AmountInfo; 41 } 42 43 }