Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Commit 6bf7df8

Browse files
committed
Oops, forgot to add test data.
1 parent f7de824 commit 6bf7df8

1 file changed

Lines changed: 131 additions & 0 deletions

File tree

mail/src/test/resources/javax/mail/internet/addrfolddata

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
#
2+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3+
#
4+
# Copyright (c) 1997-2016 Oracle and/or its affiliates. All rights reserved.
5+
#
6+
# The contents of this file are subject to the terms of either the GNU
7+
# General Public License Version 2 only ("GPL") or the Common Development
8+
# and Distribution License("CDDL") (collectively, the "License"). You
9+
# may not use this file except in compliance with the License. You can
10+
# obtain a copy of the License at
11+
# https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
12+
# or packager/legal/LICENSE.txt. See the License for the specific
13+
# language governing permissions and limitations under the License.
14+
#
15+
# When distributing the software, include this License Header Notice in each
16+
# file and include the License file at packager/legal/LICENSE.txt.
17+
#
18+
# GPL Classpath Exception:
19+
# Oracle designates this particular file as subject to the "Classpath"
20+
# exception as provided by Oracle in the GPL Version 2 section of the License
21+
# file that accompanied this code.
22+
#
23+
# Modifications:
24+
# If applicable, add the following below the License Header, with the fields
25+
# enclosed by brackets [] replaced by your own identifying information:
26+
# "Portions Copyright [year] [name of copyright owner]"
27+
#
28+
# Contributor(s):
29+
# If you wish your version of this file to be governed by only the CDDL or
30+
# only the GPL Version 2, indicate your decision by adding "[Contributor]
31+
# elects to include this software in this distribution under the [CDDL or GPL
32+
# Version 2] license." If you don't indicate a single choice of license, a
33+
# recipient has the option to distribute your version of this file under
34+
# either the CDDL, the GPL Version 2 or to extend the choice of license to
35+
# its licensees as provided above. However, if you add GPL Version 2 code
36+
# and therefore, elected the GPL Version 2 license, then the option applies
37+
# only if the new code is made subject to such option by the copyright
38+
# holder.
39+
#
40+
41+
#
42+
# Test data used by InternetAddressFoldTest.java to test folding of
43+
# addresses using the InternetAddress.toString(Address[], int) method.
44+
#
45+
# Data format is:
46+
#
47+
# FOLD N
48+
# address1$
49+
# ...
50+
# addressN$
51+
# EXPECT
52+
# address1, ..., addressN$
53+
#
54+
# That is, the FOLD line says how many addresses follow,
55+
# each address is terminated by a dollar sign, allowing embedded CR and LF.
56+
# EXPECT is followed by one string terminated by a dollar sign.
57+
#
58+
59+
#
60+
# First, test some simple non-folding and folding cases.
61+
#
62+
FOLD 2
63+
a@example.com$
64+
b@example.com$
65+
EXPECT
66+
a@example.com, b@example.com$
67+
FOLD 2
68+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@example.com$
69+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@example.com$
70+
EXPECT
71+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@example.com,
72+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb@example.com$
73+
FOLD 1
74+
a
75+
b
76+
c <abc@example.com>$
77+
EXPECT
78+
a
79+
b
80+
c <abc@example.com>$
81+
FOLD 1
82+
a
83+
b
84+
c <abc@example.com>$
85+
EXPECT
86+
a
87+
b
88+
c <abc@example.com>$
89+
FOLD 1
90+
abc <abc@example.com>$
91+
EXPECT
92+
a
93+
b
94+
c <abc@example.com>$
95+
#
96+
# Test that personal name is wrapped, preserving whitespace.
97+
#
98+
FOLD 1
99+
a
100+
b
101+
c <abc@example.com>$
102+
EXPECT
103+
a
104+
b
105+
c <abc@example.com>$
106+
FOLD 1
107+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccc <abc@example.com>$
108+
EXPECT
109+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
110+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
111+
ccccccccccccccccccccccccccccccccccccccc <abc@example.com>$
112+
FOLD 1
113+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccc <abc@example.com>$
114+
EXPECT
115+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
116+
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
117+
ccccccccccccccccccccccccccccccccccccccc <abc@example.com>$
118+
#
119+
# Test a mix; note different indentation, which is weird,
120+
# but Thunderbird does this too.
121+
#
122+
FOLD 2
123+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@example.com$
124+
a
125+
b
126+
c <abc@example.com>$
127+
EXPECT
128+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@example.com,
129+
a
130+
b
131+
c <abc@example.com>$

0 commit comments

Comments
 (0)