01: /*
02: * This file is part of "SnipSnap Wiki/Weblog".
03: *
04: * Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel
05: * All Rights Reserved.
06: *
07: * Please visit http://snipsnap.org/ for updates and contact.
08: *
09: * --LICENSE NOTICE--
10: * Licensed under the Apache License, Version 2.0 (the "License");
11: * you may not use this file except in compliance with the License.
12: * You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software
17: * distributed under the License is distributed on an "AS IS" BASIS,
18: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19: * See the License for the specific language governing permissions and
20: * limitations under the License.
21: * --LICENSE NOTICE--
22: */
23:
24: package org.radeox.test.macro;
25:
26: /*
27: * This file is part of "SnipSnap Radeox Rendering Engine". Copyright (c) 2002
28: * Stephan J. Schmidt, Matthias L. Jugel All Rights Reserved. Please visit
29: * http://radeox.org/ for updates and contact. --LICENSE NOTICE-- Licensed under
30: * the Apache License, Version 2.0 (the "License"); you may not use this file
31: * except in compliance with the License. You may obtain a copy of the License
32: * at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable
33: * law or agreed to in writing, software distributed under the License is
34: * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
35: * KIND, either express or implied. See the License for the specific language
36: * governing permissions and limitations under the License. --LICENSE NOTICE--
37: */
38:
39: import junit.framework.Test;
40: import junit.framework.TestSuite;
41:
42: import org.radeox.EngineManager;
43:
44: public class MailToMacroTest extends MacroTestSupport {
45: public MailToMacroTest(String name) {
46: super (name);
47: }
48:
49: public static Test suite() {
50: return new TestSuite(MailToMacroTest.class);
51: }
52:
53: public void testMailto() {
54: String result = EngineManager.getInstance().render(
55: "{mailto:stephan@mud.de}", context);
56: assertEquals(
57: "<a href=\"mailto:stephan@mud.de\">stephan@mud.de</a>",
58: result);
59: }
60: }
|