Skip to content

Commit 8f952d1

Browse files
committed
malve: Enable PrintStream test cases
This patch enables disabled PrintStream test cases that work with GNU Classpath CVS head. Signed-off-by: Pekka Enberg <penberg@kernel.org>
1 parent 9dedaf8 commit 8f952d1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/malva/java/io/PrintStreamTest.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
import malva.TestCase;
44

55
import java.io.ByteArrayOutputStream;
6+
import java.io.File;
7+
import java.io.FileNotFoundException;
68
import java.io.OutputStream;
79
import java.io.PrintStream;
810
import java.io.UnsupportedEncodingException;
911

1012
public class PrintStreamTest extends TestCase {
1113
public static void testConstructor() throws UnsupportedEncodingException {
1214
final OutputStream out = new ByteArrayOutputStream();
13-
/* @since 1.5
1415
assertThrows(new Block() {
15-
@Override public void run() {
16+
@Override public void run() throws FileNotFoundException {
1617
new PrintStream((File) null);
1718
}
1819
}, NullPointerException.class);
1920
assertThrows(new Block() {
20-
@Override public void run() {
21+
@Override public void run() throws FileNotFoundException, UnsupportedEncodingException {
2122
new PrintStream((File) null, "utf-8");
2223
}
2324
}, NullPointerException.class);
24-
*/
2525
assertThrows(new Block() {
2626
@Override public void run() {
2727
new PrintStream((OutputStream) null);
@@ -55,18 +55,16 @@ public static void testConstructor() throws UnsupportedEncodingException {
5555
}
5656
}, UnsupportedEncodingException.class);
5757
assertNotNull(new PrintStream(out, true, "utf-8"));
58-
/* @since 1.5
5958
assertThrows(new Block() {
60-
@Override public void run() {
59+
@Override public void run() throws FileNotFoundException {
6160
new PrintStream((String) null);
6261
}
6362
}, NullPointerException.class);
6463
assertThrows(new Block() {
65-
@Override public void run() {
64+
@Override public void run() throws FileNotFoundException, UnsupportedEncodingException {
6665
new PrintStream((String) null, (String) "utf-8");
6766
}
6867
}, NullPointerException.class);
69-
*/
7068
}
7169

7270
public static void main(String[] args) throws Exception {

0 commit comments

Comments
 (0)