KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tools > ant > util > regexp > Jdk14RegexpRegexpTest


1 /*
2  * Copyright 2001-2002,2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17
18 package org.apache.tools.ant.util.regexp;
19
20 import java.io.IOException JavaDoc;
21
22 import junit.framework.AssertionFailedError;
23
24 /**
25  * Tests for the JDK 1.4 implementation of the Regexp interface.
26  *
27  */

28 public class Jdk14RegexpRegexpTest extends RegexpTest {
29
30     public Regexp getRegexpImplementation() {
31         return new Jdk14RegexpRegexp();
32     }
33
34     public Jdk14RegexpRegexpTest(String JavaDoc name) {
35         super(name);
36     }
37
38     public void testParagraphCharacter() throws IOException JavaDoc {
39         try {
40             super.testParagraphCharacter();
41             fail("Should trigger once fixed. {@since JDK 1.4RC1}");
42         } catch (AssertionFailedError e){
43         }
44     }
45
46     public void testLineSeparatorCharacter() throws IOException JavaDoc {
47         try {
48             super.testLineSeparatorCharacter();
49             fail("Should trigger once fixed. {@since JDK 1.4RC1}");
50         } catch (AssertionFailedError e){
51         }
52     }
53
54     public void testStandaloneCR() throws IOException JavaDoc {
55         try {
56             super.testStandaloneCR();
57             fail("Should trigger once fixed. {@since JDK 1.4RC1}");
58         } catch (AssertionFailedError e){
59         }
60     }
61
62     public void testWindowsLineSeparator() throws IOException JavaDoc {
63         try {
64             super.testWindowsLineSeparator();
65             fail("Should trigger once fixed. {@since JDK 1.4RC1}");
66         } catch (AssertionFailedError e){
67         }
68     }
69
70 }
71
Popular Tags