01: /* Copyright 2005 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.layout;
07:
08: import junit.framework.TestCase;
09:
10: /**
11: * JUnit testcase for LayoutStructure.
12: * @version $Revision: 35703 $ $Date: 2005-05-01 19:14:28 -0700 (Sun, 01 May 2005) $
13: */
14: public class LayoutStructureTest extends TestCase {
15:
16: public void testIsChannel() {
17: // a LayoutStructure for which a nonzero channel id is declared
18: LayoutStructure channelLayoutStructure = new LayoutStructure(4,
19: 5, 6, 5, "F", "T", "T");
20:
21: assertTrue(channelLayoutStructure.isChannel());
22:
23: LayoutStructure notChannelLayoutStructure = new LayoutStructure(
24: 4, 5, 6, 0, "F", "T", "T");
25:
26: assertFalse(notChannelLayoutStructure.isChannel());
27: }
28:
29: }
30:
31: /* LayoutStructureTest.java
32: *
33: * Copyright (c) May 1, 2005 Yale University. All rights reserved.
34: *
35: * THIS SOFTWARE IS PROVIDED "AS IS," AND ANY EXPRESS OR IMPLIED
36: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
37: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE EXPRESSLY
38: * DISCLAIMED. IN NO EVENT SHALL YALE UNIVERSITY OR ITS EMPLOYEES BE
39: * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
40: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED, THE COSTS OF
41: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA OR
42: * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
43: * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
44: * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
45: * SOFTWARE, EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH
46: * DAMAGE.
47: *
48: * Redistribution and use of this software in source or binary forms,
49: * with or without modification, are permitted, provided that the
50: * following conditions are met.
51: *
52: * 1. Any redistribution must include the above copyright notice and
53: * disclaimer and this list of conditions in any related documentation
54: * and, if feasible, in the redistributed software.
55: *
56: * 2. Any redistribution must include the acknowledgment, "This product
57: * includes software developed by Yale University," in any related
58: * documentation and, if feasible, in the redistributed software.
59: *
60: * 3. The names "Yale" and "Yale University" must not be used to endorse
61: * or promote products derived from this software.
62: */
|