1 // Tags: JDK1.4 |
|
2 // Uses: getBytes13 |
|
3 |
|
4 // Copyright (C) 2003 Free Software Foundation, Inc. |
|
5 |
|
6 // This file is part of Mauve. |
|
7 |
|
8 // Mauve is free software; you can redistribute it and/or modify |
|
9 // it under the terms of the GNU General Public License as published by |
|
10 // the Free Software Foundation; either version 2, or (at your option) |
|
11 // any later version. |
|
12 |
|
13 // Mauve is distributed in the hope that it will be useful, |
|
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 // GNU General Public License for more details. |
|
17 |
|
18 // You should have received a copy of the GNU General Public License |
|
19 // along with Mauve; see the file COPYING. If not, write to |
|
20 // the Free Software Foundation, 59 Temple Place - Suite 330, |
|
21 // Boston, MA 02111-1307, USA. */ |
|
22 |
|
23 package gnu.testlet.java.lang.String; |
|
24 |
|
25 import gnu.testlet.Testlet; |
|
26 import gnu.testlet.TestHarness; |
|
27 |
|
28 public class getBytes14 extends getBytes13 implements Testlet |
|
29 { |
|
30 public void test (TestHarness harness) |
|
31 { |
|
32 harness.checkPoint("getBytes14"); |
|
33 |
|
34 // New canonical names in 1.4 |
|
35 test1Encoding (harness, "US-ASCII", "abc", ABC1); |
|
36 test1Encoding (harness, "windows-1252", "abc", ABC1); |
|
37 test1Encoding (harness, "ISO-8859-1", "abc", ABC1); |
|
38 test1Encoding (harness, "ISO-8859-15", "abc", ABC1); |
|
39 test1Encoding (harness, "ISO8859_15", "abc", ABC1); |
|
40 test1Encoding (harness, "UTF-8", "abc", ABC1); |
|
41 test1Encoding (harness, "UTF-16BE", "abc", ABC3); |
|
42 test1Encoding (harness, "UTF-16LE", "abc", ABC5); |
|
43 } |
|
44 } |
|