01: /*
02: * $Id$ $Revision: 1.1 $ $Date$
03: *
04: * ==================================================================== Licensed
05: * under the Apache License, Version 2.0 (the "License"); you may not use this
06: * file except in compliance with the License. You may obtain a copy of the
07: * 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, WITHOUT
13: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14: * License for the specific language governing permissions and limitations under
15: * the License.
16: */
17: package wicket.examples.encodings;
18:
19: import junit.framework.Test;
20: import wicket.examples.WicketWebTestCase;
21:
22: /**
23: * jWebUnit test for Hello World.
24: */
25: public class EncodingTest extends WicketWebTestCase {
26: /**
27: *
28: * @return Test
29: */
30: public static Test suite() {
31: return suite(EncodingTest.class);
32: }
33:
34: /**
35: * Construct.
36: *
37: * @param name
38: * name of test
39: */
40: public EncodingTest(String name) {
41: super (name);
42: }
43:
44: /**
45: * Test page.
46: *
47: * @throws Exception
48: */
49: public void test_1() throws Exception {
50: beginAt("/encodings");
51: this .dumpResponse(System.out);
52: assertTitleEquals("Wicket Examples - encodings");
53: // assertEquals("ŠšŸ", "\u00e4\u00f6\u00fc");
54: assertTextPresent("Hello world! Test: \u00e4\u00f6\u00fc");
55: }
56: }
|