01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.labor.bo;
17:
18: import org.kuali.kfs.context.KualiTestBase;
19: import org.kuali.test.ConfigureContext;
20:
21: @ConfigureContext
22: public class LaborOriginEntryTest extends KualiTestBase {
23:
24: public LaborOriginEntryTest() {
25: super ();
26: }
27:
28: public void testGetLine() throws Exception {
29:
30: String line = null;
31: /*
32: * line = "2007BL4131407-----4100---ACEX07TOPSLGEXPIRCGAC CONCERTO OFFICE PRODUCTS 48.53C2006-01-05 ---------- "; String
33: * convertedLine = "2007BL4131407-----4100---ACEX07TOPSLGEXPIRCGAC 00000CONCERTO OFFICE PRODUCTS 48.53C2006-01-05 ---------- ";
34: * assertEquals(convertedLine, new LaborOriginEntry(line).getLine());
35: */
36:
37: line = "2007BA6044900-----2400---ACEX06PAY PLM01010207 0000100009529----------KUALI TEST DESCRIPTION +000000000003493.50D2006-12-22 2006-12-222006-12-31000168.002007060000149952 001REGS12PAE 11 M001010207 IU IUBLA";
38: String convertedLine = "2007BA6044900-----2400---ACEX06PAY PLM01010207 0000100009529----------KUALI TEST DESCRIPTION 3493.50D2006-12-22 2006-12-222006-12-31168.00 2007060000149952 1 REGS12PAE 11 M001010207 IU IUBLA";
39: assertEquals(convertedLine, new LaborOriginEntry(line)
40: .getLine());
41: assertEquals(convertedLine, new LaborOriginEntry(convertedLine)
42: .getLine());
43:
44: /*
45: * line = "2007BA6044900-----2400---ACEX06PAY PLM01010207 0000100009529----------KUALI TEST DESCRIPTION 3493.50D2006-12-22
46: * 2006-12-222006-12-31168.00 2007060000149952 1 REGS12PAE 11 M001010207 IU IUBLA"; assertEquals(line, new
47: * LaborOriginEntry(line).getLine());
48: */
49: /*
50: * line = "2007BL4131407-----9041---ACLI07TOPSLGEXPIRCGAC 12345CONCERTO OFFICE PRODUCTS 48.53D2006-01-05 ---------- ";
51: * assertEquals(line, new LaborOriginEntry(line).getLine()); line = "2007BL4131407-----9041---ACLI07TOPSLGEXPIRCGAC
52: * 00045CONCERTO OFFICE PRODUCTS 48.53D2006-01-05 ---------- "; assertEquals(line, new LaborOriginEntry(line).getLine());
53: */
54: }
55:
56: }
|