01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.wicket.markup.html.link;
18:
19: import org.apache.wicket.WicketTestCase;
20:
21: /**
22: * Simple tester that demonstrates the mock http application code (and
23: * checks that it is working)
24: *
25: * @author Chris Turner
26: */
27: public class HrefTest extends WicketTestCase {
28: /**
29: * Create the test.
30: *
31: * @param name
32: * The test name
33: */
34: public HrefTest(String name) {
35: super (name);
36: }
37:
38: /**
39: * Simple Label
40: *
41: * @throws Exception
42: */
43: public void testRenderHomePage_1() throws Exception {
44: tester.getApplication().getMarkupSettings().setStripWicketTags(
45: false);
46: executeTest(Href_1.class, "HrefExpectedResult_1.html");
47: }
48:
49: /**
50: * Simple Label
51: *
52: * @throws Exception
53: */
54: public void testRenderHomePage_2() throws Exception {
55: tester.getApplication().getMarkupSettings().setStripWicketTags(
56: true);
57: executeTest(Href_1.class, "HrefExpectedResult_1-1.html");
58: }
59:
60: /**
61: * Simple Label
62: *
63: * @throws Exception
64: */
65: public void testRenderHomePage_2a() throws Exception {
66: tester.getApplication().getMarkupSettings().setStripWicketTags(
67: true);
68: executeTest(Href_2.class, "HrefExpectedResult_2.html");
69: }
70:
71: /**
72: * Simple Label
73: *
74: * @throws Exception
75: */
76: public void testRenderHomePage_3() throws Exception {
77: executeTest(Href_3.class, "HrefExpectedResult_3.html");
78: }
79: }
|