01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/portal/tags/sakai_2-4-1/portal-render-engine-impl/impl/src/test/org/sakaiproject/portal/charon/test/PortalRenderTest.java $
03: * $Id: PortalRenderTest.java 21708 2007-02-18 21:59:28Z ian@caret.cam.ac.uk $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.portal.charon.test;
21:
22: import junit.framework.TestCase;
23:
24: /**
25: * A unit test that performs a template render test, checking for XMTML
26: * compliance. You should check the transcript for resutls. The test will not
27: * fail.
28: *
29: * @author ieb
30: */
31: public class PortalRenderTest extends TestCase {
32:
33: public static void main(String[] args) {
34: }
35:
36: public PortalRenderTest(String arg0) throws Exception {
37: super (arg0);
38: }
39:
40: @Override
41: protected void setUp() throws Exception {
42: super .setUp();
43: }
44:
45: @Override
46: protected void tearDown() throws Exception {
47: super .tearDown();
48: }
49:
50: public void testAllTemplates() throws Exception {
51: try {
52: MockCharonPortal mock = new MockCharonPortal();
53: // mock.doError();
54: mock.doGalleryTabs();
55: mock.doGallery();
56: mock.doNavLogin();
57: mock.doNavLoginGallery();
58: mock.doPage();
59: mock.doSite();
60: mock.doSiteTabs();
61: mock.doWorksite();
62: } catch (Exception ex) {
63: ex.printStackTrace();
64: }
65: }
66:
67: }
|