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;
|
---|
21 |
|
---|
22 | import junit.framework.AssertionFailedError;
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * Tests for the JDK 1.4 implementation of the RegexpMatcher interface.
|
---|
26 | *
|
---|
27 | */
|
---|
28 | public class Jdk14RegexpMatcherTest extends RegexpMatcherTest {
|
---|
29 |
|
---|
30 | public RegexpMatcher getImplementation() {
|
---|
31 | return new Jdk14RegexpMatcher();
|
---|
32 | }
|
---|
33 |
|
---|
34 | public Jdk14RegexpMatcherTest(String name) {
|
---|
35 | super(name);
|
---|
36 | }
|
---|
37 |
|
---|
38 | public void testParagraphCharacter() throws IOException {
|
---|
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 {
|
---|
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 {
|
---|
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 {
|
---|
63 | try {
|
---|
64 | super.testWindowsLineSeparator();
|
---|
65 | fail("Should trigger once fixed. {@since JDK 1.4RC1}");
|
---|
66 | } catch (AssertionFailedError e){
|
---|
67 | }
|
---|
68 | }
|
---|
69 | }
|
---|