01: /*
02: * Copyright 2005-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.financial.bo;
17:
18: import org.kuali.kfs.context.KualiTestBase;
19:
20: /**
21: * This class...
22: */
23: public class CashDetailTypeCodeTest extends KualiTestBase {
24: private CashDetailTypeCode cdtc = null;
25: public static final boolean ACTIVE_IND = true;
26: public static final String GUID = "123456789012345678901234567890123456";
27: public static final String NAME = "NAME";
28: public static final String CODE = "CODE";
29: public static final Long VER_NBR = new Long(1);
30: public static final String DESCRIPTION = "Description";
31:
32: @Override
33: protected void setUp() throws Exception {
34: super .setUp();
35: cdtc = new CashDetailTypeCode();
36: cdtc.setActive(ACTIVE_IND);
37: cdtc.setCode(CODE);
38: cdtc.setName(NAME);
39: cdtc.setObjectId(GUID);
40: cdtc.setVersionNumber(VER_NBR);
41: cdtc.setDescription(DESCRIPTION);
42: }
43:
44: public void testCashDetailTypePojo() {
45: assertEquals(ACTIVE_IND, cdtc.isActive());
46: assertEquals(CODE, cdtc.getCode());
47: assertEquals(NAME, cdtc.getName());
48: assertEquals(VER_NBR, cdtc.getVersionNumber());
49: assertEquals(GUID, cdtc.getObjectId());
50: assertEquals(DESCRIPTION, cdtc.getDescription());
51: }
52: }
|