harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r470674 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/io/PrintStreamTest.java
Date Fri, 03 Nov 2006 05:26:02 GMT
Author: mloenko
Date: Thu Nov  2 21:25:59 2006
New Revision: 470674

URL: http://svn.apache.org/viewvc?view=rev&rev=470674
Log:
reformat a test

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/io/PrintStreamTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/io/PrintStreamTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/io/PrintStreamTest.java?view=diff&rev=470674&r1=470673&r2=470674
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/io/PrintStreamTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/io/PrintStreamTest.java
Thu Nov  2 21:25:59 2006
@@ -19,6 +19,7 @@
 
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
+import java.io.DataInputStream;
 import java.io.IOException;
 import java.io.OutputStream;
 import java.io.PrintStream;
@@ -26,557 +27,503 @@
 
 public class PrintStreamTest extends junit.framework.TestCase {
 
-	java.io.ByteArrayOutputStream bos;
+    ByteArrayOutputStream bos = new ByteArrayOutputStream();
 
-	private java.io.PrintStream os;
+    byte[] ibuf = new byte[4096];
 
-	java.io.ByteArrayInputStream bis;
+    public String fileString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutputStream\nTest_java_io_ByteArrayInputStream\nTest_java_io_ByteArrayOutputStream\nTest_java_io_DataInputStream\nTest_java_io_File\nTest_java_io_FileDescriptor\nTest_java_io_FileInputStream\nTest_java_io_FileNotFoundException\nTest_java_io_FileOutputStream\nTest_java_io_FilterInputStream\nTest_java_io_FilterOutputStream\nTest_java_io_InputStream\nTest_java_io_IOException\nTest_java_io_OutputStream\nTest_PrintStream\nTest_java_io_RandomAccessFile\nTest_java_io_SyncFailedException\nTest_java_lang_AbstractMethodError\nTest_java_lang_ArithmeticException\nTest_java_lang_ArrayIndexOutOfBoundsException\nTest_java_lang_ArrayStoreException\nTest_java_lang_Boolean\nTest_java_lang_Byte\nTest_java_lang_Character\nTest_java_lang_Class\nTest_java_lang_ClassCastException\nTest_java_lang_ClassCircularityError\nTest_java_lang_ClassFormatError\nTest_java_lang_ClassLoader\nTest_java_lang_Cl
 assNotFoundException\nTest_java_lang_CloneNotSupportedException\nTest_java_lang_Double\nTest_java_lang_Error\nTest_java_lang_Exception\nTest_java_lang_ExceptionInInitializerError\nTest_java_lang_Float\nTest_java_lang_IllegalAccessError\nTest_java_lang_IllegalAccessException\nTest_java_lang_IllegalArgumentException\nTest_java_lang_IllegalMonitorStateException\nTest_java_lang_IllegalThreadStateException\nTest_java_lang_IncompatibleClassChangeError\nTest_java_lang_IndexOutOfBoundsException\nTest_java_lang_InstantiationError\nTest_java_lang_InstantiationException\nTest_java_lang_Integer\nTest_java_lang_InternalError\nTest_java_lang_InterruptedException\nTest_java_lang_LinkageError\nTest_java_lang_Long\nTest_java_lang_Math\nTest_java_lang_NegativeArraySizeException\nTest_java_lang_NoClassDefFoundError\nTest_java_lang_NoSuchFieldError\nTest_java_lang_NoSuchMethodError\nTest_java_lang_NullPointerException\nTest_java_lang_Number\nTest_java_lang_NumberFormatException\nTest_java_lang_
 Object\nTest_java_lang_OutOfMemoryError\nTest_java_lang_RuntimeException\nTest_java_lang_SecurityManager\nTest_java_lang_Short\nTest_java_lang_StackOverflowError\nTest_java_lang_String\nTest_java_lang_StringBuffer\nTest_java_lang_StringIndexOutOfBoundsException\nTest_java_lang_System\nTest_java_lang_Thread\nTest_java_lang_ThreadDeath\nTest_java_lang_ThreadGroup\nTest_java_lang_Throwable\nTest_java_lang_UnknownError\nTest_java_lang_UnsatisfiedLinkError\nTest_java_lang_VerifyError\nTest_java_lang_VirtualMachineError\nTest_java_lang_vm_Image\nTest_java_lang_vm_MemorySegment\nTest_java_lang_vm_ROMStoreException\nTest_java_lang_vm_VM\nTest_java_lang_Void\nTest_java_net_BindException\nTest_java_net_ConnectException\nTest_java_net_DatagramPacket\nTest_java_net_DatagramSocket\nTest_java_net_DatagramSocketImpl\nTest_java_net_InetAddress\nTest_java_net_NoRouteToHostException\nTest_java_net_PlainDatagramSocketImpl\nTest_java_net_PlainSocketImpl\nTest_java_net_Socket\nTest_java_net_Sock
 etException\nTest_java_net_SocketImpl\nTest_java_net_SocketInputStream\nTest_java_net_SocketOutputStream\nTest_java_net_UnknownHostException\nTest_java_util_ArrayEnumerator\nTest_java_util_Date\nTest_java_util_EventObject\nTest_java_util_HashEnumerator\nTest_java_util_Hashtable\nTest_java_util_Properties\nTest_java_util_ResourceBundle\nTest_java_util_tm\nTest_java_util_Vector\n";
 
-	byte[] ibuf = new byte[4096];
+    /**
+     * @tests java.io.PrintStream#PrintStream(java.io.OutputStream)
+     */
+    public void test_ConstructorLjava_io_OutputStream() throws Exception {
+        // Test for method java.io.PrintStream(java.io.OutputStream)
+        PrintStream os = new PrintStream(bos);
+        os.print(2345.76834720202);
+        os.close();
 
-	public String fileString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutputStream\nTest_java_io_ByteArrayInputStream\nTest_java_io_ByteArrayOutputStream\nTest_java_io_DataInputStream\nTest_java_io_File\nTest_java_io_FileDescriptor\nTest_java_io_FileInputStream\nTest_java_io_FileNotFoundException\nTest_java_io_FileOutputStream\nTest_java_io_FilterInputStream\nTest_java_io_FilterOutputStream\nTest_java_io_InputStream\nTest_java_io_IOException\nTest_java_io_OutputStream\nTest_PrintStream\nTest_java_io_RandomAccessFile\nTest_java_io_SyncFailedException\nTest_java_lang_AbstractMethodError\nTest_java_lang_ArithmeticException\nTest_java_lang_ArrayIndexOutOfBoundsException\nTest_java_lang_ArrayStoreException\nTest_java_lang_Boolean\nTest_java_lang_Byte\nTest_java_lang_Character\nTest_java_lang_Class\nTest_java_lang_ClassCastException\nTest_java_lang_ClassCircularityError\nTest_java_lang_ClassFormatError\nTest_java_lang_ClassLoader\nTest_java_lang_Class
 NotFoundException\nTest_java_lang_CloneNotSupportedException\nTest_java_lang_Double\nTest_java_lang_Error\nTest_java_lang_Exception\nTest_java_lang_ExceptionInInitializerError\nTest_java_lang_Float\nTest_java_lang_IllegalAccessError\nTest_java_lang_IllegalAccessException\nTest_java_lang_IllegalArgumentException\nTest_java_lang_IllegalMonitorStateException\nTest_java_lang_IllegalThreadStateException\nTest_java_lang_IncompatibleClassChangeError\nTest_java_lang_IndexOutOfBoundsException\nTest_java_lang_InstantiationError\nTest_java_lang_InstantiationException\nTest_java_lang_Integer\nTest_java_lang_InternalError\nTest_java_lang_InterruptedException\nTest_java_lang_LinkageError\nTest_java_lang_Long\nTest_java_lang_Math\nTest_java_lang_NegativeArraySizeException\nTest_java_lang_NoClassDefFoundError\nTest_java_lang_NoSuchFieldError\nTest_java_lang_NoSuchMethodError\nTest_java_lang_NullPointerException\nTest_java_lang_Number\nTest_java_lang_NumberFormatException\nTest_java_lang_Obj
 ect\nTest_java_lang_OutOfMemoryError\nTest_java_lang_RuntimeException\nTest_java_lang_SecurityManager\nTest_java_lang_Short\nTest_java_lang_StackOverflowError\nTest_java_lang_String\nTest_java_lang_StringBuffer\nTest_java_lang_StringIndexOutOfBoundsException\nTest_java_lang_System\nTest_java_lang_Thread\nTest_java_lang_ThreadDeath\nTest_java_lang_ThreadGroup\nTest_java_lang_Throwable\nTest_java_lang_UnknownError\nTest_java_lang_UnsatisfiedLinkError\nTest_java_lang_VerifyError\nTest_java_lang_VirtualMachineError\nTest_java_lang_vm_Image\nTest_java_lang_vm_MemorySegment\nTest_java_lang_vm_ROMStoreException\nTest_java_lang_vm_VM\nTest_java_lang_Void\nTest_java_net_BindException\nTest_java_net_ConnectException\nTest_java_net_DatagramPacket\nTest_java_net_DatagramSocket\nTest_java_net_DatagramSocketImpl\nTest_java_net_InetAddress\nTest_java_net_NoRouteToHostException\nTest_java_net_PlainDatagramSocketImpl\nTest_java_net_PlainSocketImpl\nTest_java_net_Socket\nTest_java_net_SocketE
 xception\nTest_java_net_SocketImpl\nTest_java_net_SocketInputStream\nTest_java_net_SocketOutputStream\nTest_java_net_UnknownHostException\nTest_java_util_ArrayEnumerator\nTest_java_util_Date\nTest_java_util_EventObject\nTest_java_util_HashEnumerator\nTest_java_util_Hashtable\nTest_java_util_Properties\nTest_java_util_ResourceBundle\nTest_java_util_tm\nTest_java_util_Vector\n";
-
-	/**
-	 * @tests java.io.PrintStream#PrintStream(java.io.OutputStream)
-	 */
-	public void test_ConstructorLjava_io_OutputStream() throws Exception{
-		// Test for method java.io.PrintStream(java.io.OutputStream)
-		try {
-			os = new java.io.PrintStream(bos);
-			os.print(2345.76834720202);
-		} finally {
-			try {
-				os.close();
-			} catch (Exception e) {
-				fail("IOException during constructor test : " + e.getMessage());
-			}
-		}
-        //regression for HARMONY-1195
+        // regression for HARMONY-1195
         try {
             os = new PrintStream(bos, true, null);
-            fail("Should throw NPE.");
-        } catch (NullPointerException e) {
-        } 
-	}
-
-	/**
-	 * @tests java.io.PrintStream#PrintStream(java.io.OutputStream, boolean)
-	 */
-	public void test_ConstructorLjava_io_OutputStreamZ() {
-		// Test for method java.io.PrintStream(java.io.OutputStream, boolean)
-		try {
-			os = new java.io.PrintStream(bos);
-			os.println(2345.76834720202);
-			os.flush();
-			assertTrue("Bytes not written", bos.size() > 0);
-		} catch (Exception e) {
-			fail("Exception during constructor test : " + e.getMessage());
-		} finally {
-			try {
-				os.close();
-			} catch (Exception e) {
-				fail("Exception during constructor test : " + e.getMessage());
-			}
-		}
-	}
-
-	/**
-	 * @tests java.io.PrintStream#checkError()
-	 */
-	public void test_checkError() {
-		// Test for method boolean java.io.PrintStream.checkError()
-		try {
-			os = new java.io.PrintStream(new OutputStream() {
-				public void write(int b) throws IOException {
-					throw new IOException();
-				}
-
-				public void write(byte[] b, int o, int l)
-						throws java.io.IOException {
-					throw new java.io.IOException();
-				}
-			});
-			os.print(fileString.substring(0, 501));
-			assertTrue("Checkerror should return true", os.checkError());
-		} catch (Exception e) {
-			fail("Exception raised : " + e.getMessage());
-		}
-	}
-
-	/**
-	 * @tests java.io.PrintStream#close()
-	 */
-	public void test_close() {
-		// Test for method void java.io.PrintStream.close()
-		try {
-			os = new java.io.PrintStream(bos);
-			os.close();
-		} catch (Exception e) {
-			fail("Close test raised exception : " + e.getMessage());
-		} finally {
-			try {
-				bos.close();
-			} catch (java.io.IOException e) {
-				fail("IOException during flush test : " + e.getMessage());
-			}
-		}
-	}
-
-	/**
-	 * @tests java.io.PrintStream#flush()
-	 */
-	public void test_flush() {
-		// Test for method void java.io.PrintStream.flush()
-		try {
-			os = new java.io.PrintStream(bos);
-			os.print(fileString.substring(0, 501));
-			os.flush();
-			assertEquals("Bytes not written after flush.", 501, bos.size());
-			bos.close();
-		} catch (java.io.IOException e) {
-			fail("Flush test failed with IOException: " + e.toString());
-		} finally {
-			try {
-				os.close();
-				bos.close();
-			} catch (java.io.IOException e) {
-				fail("IOException during flush test: " + e.toString());
-			}
-		}
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(char[])
-	 */
-	public void test_print$C() {
-		// Test for method void java.io.PrintStream.print(char [])
-		int r = 0;
-		os = new java.io.PrintStream(bos, true);
-		try {
-			os.print((char[]) null);
-		} catch (NullPointerException ex) {
-			r = 1;
-		}
-		assertEquals("expected null Pointer Exception for print(char[]) not thrown",
-				1, r);
-
-		os = new java.io.PrintStream(bos, true);
-		char[] sc = new char[4000];
-		fileString.getChars(0, fileString.length(), sc, 0);
-		os.print(sc);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		os.close();
-		byte[] rbytes = new byte[4000];
-		bis.read(rbytes, 0, fileString.length());
-		assertTrue("Incorrect char[] written", new String(rbytes, 0, fileString
-				.length()).equals(fileString));
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(char)
-	 */
-	public void test_printC() {
-		// Test for method void java.io.PrintStream.print(char)
-		os = new java.io.PrintStream(bos, true);
-		os.print('t');
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		assertEquals("Incorrect char written", 't', bis.read());
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(double)
-	 */
-	public void test_printD() {
-		// Test for method void java.io.PrintStream.print(double)
-		byte[] rbuf = new byte[100];
-		os = new java.io.PrintStream(bos, true);
-		os.print(2345.76834720202);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		bis.read(rbuf, 0, 16);
-		assertEquals("Incorrect double written", "2345.76834720202", new String(rbuf, 0, 16)
-				);
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(float)
-	 */
-	public void test_printF() {
-		// Test for method void java.io.PrintStream.print(float)
-		os = new java.io.PrintStream(bos, true);
-		byte rbuf[] = new byte[10];
-		os.print(29.08764f);
-		os.flush();
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		bis.read(rbuf, 0, 8);
-		assertEquals("Incorrect float written", "29.08764", new String(rbuf, 0, 8)
-				);
-
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(int)
-	 */
-	public void test_printI() {
-		// Test for method void java.io.PrintStream.print(int)
-		os = new java.io.PrintStream(bos, true);
-		os.print(768347202);
-		byte[] rbuf = new byte[18];
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		bis.read(rbuf, 0, 9);
-		assertEquals("Incorrect int written", "768347202", new String(rbuf, 0, 9)
-				);
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(long)
-	 */
-	public void test_printJ() {
-		// Test for method void java.io.PrintStream.print(long)
-		byte[] rbuf = new byte[100];
-		os = new java.io.PrintStream(bos, true);
-		os.print(9875645283333L);
-		os.close();
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		bis.read(rbuf, 0, 13);
-		assertEquals("Incorrect long written", "9875645283333", new String(rbuf, 0, 13)
-				);
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(java.lang.Object)
-	 */
-	public void test_printLjava_lang_Object() {
-		// Test for method void java.io.PrintStream.print(java.lang.Object)
-		os = new java.io.PrintStream(bos, true);
-		os.print((Object) null);
-		os.flush();
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] nullbytes = new byte[4];
-		bis.read(nullbytes, 0, 4);
-		assertEquals("null should be written", "null", new String(nullbytes, 0, 4)
-				);
-		try {
-			bis.close();
-			bos.close();
-			os.close();
-		} catch (java.io.IOException e) {
-			fail("Unexpectted IO exception : " + e.getMessage());
-		}
-		java.io.ByteArrayOutputStream bos1 = new java.io.ByteArrayOutputStream();
-		os = new java.io.PrintStream(bos1, true);
-		os.print(new java.util.Vector());
-		bis = new java.io.ByteArrayInputStream(bos1.toByteArray());
-		byte[] rbytes = new byte[2];
-		bis.read(rbytes, 0, 2);
-		assertEquals("Incorrect Object written", "[]", new String(rbytes, 0, 2)
-				);
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(java.lang.String)
-	 */
-	public void test_printLjava_lang_String() {
-		// Test for method void java.io.PrintStream.print(java.lang.String)
-		os = new java.io.PrintStream(bos, true);
-		os.print((String) null);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] nullbytes = new byte[4];
-		bis.read(nullbytes, 0, 4);
-		assertEquals("null should be written", "null", new String(nullbytes, 0, 4)
-				);
-		try {
-			bis.close();
-			bos.close();
-			os.close();
-		} catch (java.io.IOException e) {
-			fail("Unexpected IO exception : " + e.getMessage());
-		}
-		java.io.ByteArrayOutputStream bos1 = new java.io.ByteArrayOutputStream();
-		os = new java.io.PrintStream(bos1, true);
-		os.print("Hello World");
-		bis = new java.io.ByteArrayInputStream(bos1.toByteArray());
-		byte rbytes[] = new byte[100];
-		bis.read(rbytes, 0, 11);
-		assertEquals("Incorrect string written", "Hello World", new String(rbytes, 0, 11)
-				);
-	}
-
-	/**
-	 * @tests java.io.PrintStream#print(boolean)
-	 */
-	public void test_printZ() {
-		// Test for method void java.io.PrintStream.print(boolean)
-		java.io.DataInputStream dis = null;
-		os = new java.io.PrintStream(bos, true);
-		os.print(true);
-		dis = new java.io.DataInputStream(new java.io.ByteArrayInputStream(bos
-				.toByteArray()));
-		try {
-			assertTrue("Incorrect boolean written", dis.readBoolean());
-		} catch (java.io.IOException e) {
-			fail("Exception during test : " + e.getMessage());
-		}
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println()
-	 */
-	public void test_println() {
-		// Test for method void java.io.PrintStream.println()
-		char c;
-		os = new java.io.PrintStream(bos, true);
-		os.println("");
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		assertTrue("Newline not written", (c = (char) bis.read()) == '\r'
-				|| c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(char[])
-	 */
-	public void test_println$C() {
-		// Test for method void java.io.PrintStream.println(char [])
-		os = new java.io.PrintStream(bos, true);
-		char[] sc = new char[4000];
-		fileString.getChars(0, fileString.length(), sc, 0);
-		os.println(sc);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] rbytes = new byte[4000];
-		bis.read(rbytes, 0, fileString.length());
-		assertTrue("Incorrect char[] written", new String(rbytes, 0, fileString
-				.length()).equals(fileString));
-		// In this particular test method, the end of data is not immediately
-		// followed by newLine separator in the reading buffer, instead its
-		// followed by zeros. The newline is written as the last entry
-		// in the inputStream buffer. Therefore, we must keep reading until we
-		// hit a new line.
-		int r;
-		boolean newline = false;
-		while ((r = bis.read()) != -1) {
-			if (r == '\r' || r == '\n')
-				newline = true;
-		}
-		assertTrue("Newline not written", newline);
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(char)
-	 */
-	public void test_printlnC() {
-		// Test for method void java.io.PrintStream.println(char)
-		int c;
-		os = new java.io.PrintStream(bos, true);
-		os.println('t');
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		assertEquals("Incorrect char written", 't', bis.read());
-		assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(double)
-	 */
-	public void test_printlnD() {
-		// Test for method void java.io.PrintStream.println(double)
-		int c;
-		os = new java.io.PrintStream(bos, true);
-		os.println(2345.76834720202);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] rbuf = new byte[100];
-		bis.read(rbuf, 0, 16);
-		assertEquals("Incorrect double written", "2345.76834720202", new String(rbuf, 0, 16)
-				);
-		assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(float)
-	 */
-	public void test_printlnF() {
-		// Test for method void java.io.PrintStream.println(float)
-		int c;
-		byte[] rbuf = new byte[100];
-		os = new java.io.PrintStream(bos, true);
-		os.println(29.08764f);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		bis.read(rbuf, 0, 8);
-		assertEquals("Incorrect float written", "29.08764", new String(rbuf, 0, 8)
-				);
-		assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(int)
-	 */
-	public void test_printlnI() {
-		// Test for method void java.io.PrintStream.println(int)
-		int c;
-		os = new java.io.PrintStream(bos, true);
-		os.println(768347202);
-		byte[] rbuf = new byte[100];
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		bis.read(rbuf, 0, 9);
-		assertEquals("Incorrect int written", "768347202", new String(rbuf, 0, 9)
-				);
-		assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(long)
-	 */
-	public void test_printlnJ() {
-		// Test for method void java.io.PrintStream.println(long)
-		int c;
-		os = new java.io.PrintStream(bos, true);
-		os.println(9875645283333L);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] rbuf = new byte[100];
-		bis.read(rbuf, 0, 13);
-		assertEquals("Incorrect long written", "9875645283333", new String(rbuf, 0, 13)
-				);
-		assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(java.lang.Object)
-	 */
-	public void test_printlnLjava_lang_Object() {
-		// Test for method void java.io.PrintStream.println(java.lang.Object)
-		char c;
-		os = new java.io.PrintStream(bos, true);
-		os.println(new java.util.Vector());
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] rbytes = new byte[2];
-		bis.read(rbytes, 0, 2);
-		assertEquals("Incorrect Vector written", "[]", new String(rbytes, 0, 2)
-				);
-		assertTrue("Newline not written", (c = (char) bis.read()) == '\r'
-				|| c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(java.lang.String)
-	 */
-	public void test_printlnLjava_lang_String() {
-		// Test for method void java.io.PrintStream.println(java.lang.String)
-		char c;
-		os = new java.io.PrintStream(bos, true);
-		os.println("Hello World");
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte rbytes[] = new byte[100];
-		bis.read(rbytes, 0, 11);
-		assertEquals("Incorrect string written", "Hello World", new String(rbytes, 0, 11)
-				);
-		assertTrue("Newline not written", (c = (char) bis.read()) == '\r'
-				|| c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#println(boolean)
-	 */
-	public void test_printlnZ() {
-		// Test for method void java.io.PrintStream.println(boolean)
-		int c;
-		os = new java.io.PrintStream(bos, true);
-		os.println(true);
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte[] rbuf = new byte[100];
-		bis.read(rbuf, 0, 4);
-		assertEquals("Incorrect boolean written", "true", new String(rbuf, 0, 4)
-				);
-		assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
-	}
-
-	/**
-	 * @tests java.io.PrintStream#write(byte[], int, int)
-	 */
-	public void test_write$BII() {
-		// Test for method void java.io.PrintStream.write(byte [], int, int)
-		os = new java.io.PrintStream(bos, true);
-		os.write(fileString.getBytes(), 0, fileString.length());
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		byte rbytes[] = new byte[4000];
-		bis.read(rbytes, 0, fileString.length());
-		assertTrue("Incorrect bytes written", new String(rbytes, 0, fileString
-				.length()).equals(fileString));
-	}
-
-	/**
-	 * @tests java.io.PrintStream#write(int)
-	 */
-	public void test_writeI() {
-		// Test for method void java.io.PrintStream.write(int)
-		os = new java.io.PrintStream(bos, true);
-		os.write('t');
-		bis = new java.io.ByteArrayInputStream(bos.toByteArray());
-		assertEquals("Incorrect char written", 't', bis.read());
-	}
-	
-	
-	/**
-	 * @tests java.io.PrintStream#append(char)
-	 */
-	public void test_appendChar() throws IOException{
-	char testChar = ' ';
-	ByteArrayOutputStream out = new ByteArrayOutputStream();
-	PrintStream printStream = new PrintStream(out);
-	printStream.append(testChar);
-	printStream.flush();
-	assertEquals(String.valueOf(testChar),out.toString());
-	printStream.close();
-	}
-	/**
-	 * @tests java.io.PrintStream#append(CharSequence)
-	 */
-	public void test_appendCharSequence() {
-		
-		String testString = "My Test String";
-		ByteArrayOutputStream out = new ByteArrayOutputStream();
-		PrintStream printStream = new PrintStream(out);
-		printStream.append(testString);
-		printStream.flush();
-		assertEquals(testString, out.toString());
-		printStream.close();
-	}
-
-	/**
-	 *  @tests java.io.PrintStream#append(CharSequence, int, int)
-	 */
-	public void test_appendCharSequenceIntInt() {
-		String testString = "My Test String";
-		ByteArrayOutputStream out = new ByteArrayOutputStream();
-		PrintStream printStream = new PrintStream(out);
-		printStream.append(testString, 1, 3);
-		printStream.flush();
-		assertEquals(testString.substring(1, 3), out.toString());
-		printStream.close();
+            fail("Should throw NPE");
+        } catch (NullPointerException e) {}
+    }
+
+    /**
+     * @tests java.io.PrintStream#PrintStream(java.io.OutputStream, boolean)
+     */
+    public void test_ConstructorLjava_io_OutputStreamZ() {
+        // Test for method java.io.PrintStream(java.io.OutputStream, boolean)
+        PrintStream os = new PrintStream(bos);
+        os.println(2345.76834720202);
+        os.flush();
+        assertTrue("Bytes not written", bos.size() > 0);
+        os.close();
+    }
+
+    /**
+     * @tests java.io.PrintStream#checkError()
+     */
+    public void test_checkError() throws Exception {
+        // Test for method boolean java.io.PrintStream.checkError()
+        PrintStream os = new PrintStream(new OutputStream() {
+
+            public void write(int b) throws IOException {
+                throw new IOException();
+            }
+
+            public void write(byte[] b, int o, int l) throws IOException {
+                throw new IOException();
+            }
+        });
+        os.print(fileString.substring(0, 501));
+
+        assertTrue("Checkerror should return true", os.checkError());
+    }
+
+    /**
+     * @tests java.io.PrintStream#close()
+     */
+    public void test_close() throws Exception {
+        // Test for method void java.io.PrintStream.close()
+        PrintStream os = new PrintStream(bos);
+        os.close();
+        bos.close();
+    }
+
+    /**
+     * @tests java.io.PrintStream#flush()
+     */
+    public void test_flush() throws Exception {
+        // Test for method void java.io.PrintStream.flush()
+        PrintStream os = new PrintStream(bos);
+        os.print(fileString.substring(0, 501));
+        os.flush();
+        assertEquals("Bytes not written after flush", 501, bos.size());
+        bos.close();
+        os.close();
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(char[])
+     */
+    public void test_print$C() {
+        // Test for method void java.io.PrintStream.print(char [])
+        PrintStream os = new PrintStream(bos, true);
+        try {
+            os.print((char[]) null);
+            fail("NPE expected");
+        } catch (NullPointerException ok) {}
+
+        os = new PrintStream(bos, true);
+        char[] sc = new char[4000];
+        fileString.getChars(0, fileString.length(), sc, 0);
+        os.print(sc);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        os.close();
+
+        byte[] rbytes = new byte[4000];
+        bis.read(rbytes, 0, fileString.length());
+        assertEquals("Incorrect char[] written", fileString, new String(rbytes,
+                0, fileString.length()));
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(char)
+     */
+    public void test_printC() {
+        // Test for method void java.io.PrintStream.print(char)
+        PrintStream os = new PrintStream(bos, true);
+        os.print('t');
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        assertEquals("Incorrect char written", 't', bis.read());
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(double)
+     */
+    public void test_printD() {
+        // Test for method void java.io.PrintStream.print(double)
+        byte[] rbuf = new byte[100];
+        PrintStream os = new PrintStream(bos, true);
+        os.print(2345.76834720202);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        bis.read(rbuf, 0, 16);
+        assertEquals("Incorrect double written", "2345.76834720202",
+                new String(rbuf, 0, 16));
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(float)
+     */
+    public void test_printF() {
+        // Test for method void java.io.PrintStream.print(float)
+        PrintStream os = new PrintStream(bos, true);
+        byte rbuf[] = new byte[10];
+        os.print(29.08764f);
+        os.flush();
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        bis.read(rbuf, 0, 8);
+        assertEquals("Incorrect float written", "29.08764", new String(rbuf, 0,
+                8));
+
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(int)
+     */
+    public void test_printI() {
+        // Test for method void java.io.PrintStream.print(int)
+        PrintStream os = new PrintStream(bos, true);
+        os.print(768347202);
+        byte[] rbuf = new byte[18];
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        bis.read(rbuf, 0, 9);
+        assertEquals("Incorrect int written", "768347202", new String(rbuf, 0,
+                9));
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(long)
+     */
+    public void test_printJ() {
+        // Test for method void java.io.PrintStream.print(long)
+        byte[] rbuf = new byte[100];
+        PrintStream os = new PrintStream(bos, true);
+        os.print(9875645283333L);
+        os.close();
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        bis.read(rbuf, 0, 13);
+        assertEquals("Incorrect long written", "9875645283333", new String(
+                rbuf, 0, 13));
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(java.lang.Object)
+     */
+    public void test_printLjava_lang_Object() throws Exception {
+        // Test for method void java.io.PrintStream.print(java.lang.Object)
+        PrintStream os = new PrintStream(bos, true);
+        os.print((Object) null);
+        os.flush();
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] nullbytes = new byte[4];
+        bis.read(nullbytes, 0, 4);
+        assertEquals("null should be written", "null", new String(nullbytes, 0,
+                4));
+
+        bis.close();
+        bos.close();
+        os.close();
+
+        ByteArrayOutputStream bos1 = new ByteArrayOutputStream();
+        os = new PrintStream(bos1, true);
+        os.print(new java.util.Vector());
+        bis = new ByteArrayInputStream(bos1.toByteArray());
+        byte[] rbytes = new byte[2];
+        bis.read(rbytes, 0, 2);
+        assertEquals("Incorrect Object written", "[]", new String(rbytes, 0, 2));
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(java.lang.String)
+     */
+    public void test_printLjava_lang_String() throws Exception {
+        // Test for method void java.io.PrintStream.print(java.lang.String)
+        PrintStream os = new PrintStream(bos, true);
+        os.print((String) null);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] nullbytes = new byte[4];
+        bis.read(nullbytes, 0, 4);
+        assertEquals("null should be written", "null", new String(nullbytes, 0,
+                4));
+
+        bis.close();
+        bos.close();
+        os.close();
+
+        ByteArrayOutputStream bos1 = new ByteArrayOutputStream();
+        os = new PrintStream(bos1, true);
+        os.print("Hello World");
+        bis = new ByteArrayInputStream(bos1.toByteArray());
+        byte rbytes[] = new byte[100];
+        bis.read(rbytes, 0, 11);
+        assertEquals("Incorrect string written", "Hello World", new String(
+                rbytes, 0, 11));
+    }
+
+    /**
+     * @tests java.io.PrintStream#print(boolean)
+     */
+    public void test_printZ() throws Exception {
+        // Test for method void java.io.PrintStream.print(boolean)
+        PrintStream os = new PrintStream(bos, true);
+        os.print(true);
+        DataInputStream dis = new DataInputStream(new ByteArrayInputStream(bos
+                .toByteArray()));
+
+        assertTrue("Incorrect boolean written", dis.readBoolean());
+    }
+
+    /**
+     * @tests java.io.PrintStream#println()
+     */
+    public void test_println() {
+        // Test for method void java.io.PrintStream.println()
+        char c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println("");
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        assertTrue("Newline not written", (c = (char) bis.read()) == '\r'
+                || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(char[])
+     */
+    public void test_println$C() {
+        // Test for method void java.io.PrintStream.println(char [])
+        PrintStream os = new PrintStream(bos, true);
+        char[] sc = new char[4000];
+        fileString.getChars(0, fileString.length(), sc, 0);
+        os.println(sc);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] rbytes = new byte[4000];
+        bis.read(rbytes, 0, fileString.length());
+        assertEquals("Incorrect char[] written", fileString, new String(rbytes,
+                0, fileString.length()));
+
+        // In this particular test method, the end of data is not immediately
+        // followed by newLine separator in the reading buffer, instead its
+        // followed by zeros. The newline is written as the last entry
+        // in the inputStream buffer. Therefore, we must keep reading until we
+        // hit a new line.
+        int r;
+        boolean newline = false;
+        while ((r = bis.read()) != -1) {
+            if (r == '\r' || r == '\n')
+                newline = true;
+        }
+        assertTrue("Newline not written", newline);
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(char)
+     */
+    public void test_printlnC() {
+        // Test for method void java.io.PrintStream.println(char)
+        int c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println('t');
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        assertEquals("Incorrect char written", 't', bis.read());
+        assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(double)
+     */
+    public void test_printlnD() {
+        // Test for method void java.io.PrintStream.println(double)
+        int c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println(2345.76834720202);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] rbuf = new byte[100];
+        bis.read(rbuf, 0, 16);
+        assertEquals("Incorrect double written", "2345.76834720202",
+                new String(rbuf, 0, 16));
+        assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(float)
+     */
+    public void test_printlnF() {
+        // Test for method void java.io.PrintStream.println(float)
+        int c;
+        byte[] rbuf = new byte[100];
+        PrintStream os = new PrintStream(bos, true);
+        os.println(29.08764f);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        bis.read(rbuf, 0, 8);
+        assertEquals("Incorrect float written", "29.08764", new String(rbuf, 0,
+                8));
+        assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(int)
+     */
+    public void test_printlnI() {
+        // Test for method void java.io.PrintStream.println(int)
+        int c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println(768347202);
+        byte[] rbuf = new byte[100];
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        bis.read(rbuf, 0, 9);
+        assertEquals("Incorrect int written", "768347202", new String(rbuf, 0,
+                9));
+        assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(long)
+     */
+    public void test_printlnJ() {
+        // Test for method void java.io.PrintStream.println(long)
+        int c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println(9875645283333L);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] rbuf = new byte[100];
+        bis.read(rbuf, 0, 13);
+        assertEquals("Incorrect long written", "9875645283333", new String(
+                rbuf, 0, 13));
+        assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(java.lang.Object)
+     */
+    public void test_printlnLjava_lang_Object() {
+        // Test for method void java.io.PrintStream.println(java.lang.Object)
+        char c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println(new java.util.Vector());
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] rbytes = new byte[2];
+        bis.read(rbytes, 0, 2);
+        assertEquals("Incorrect Vector written", "[]", new String(rbytes, 0, 2));
+        assertTrue("Newline not written", (c = (char) bis.read()) == '\r'
+                || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(java.lang.String)
+     */
+    public void test_printlnLjava_lang_String() {
+        // Test for method void java.io.PrintStream.println(java.lang.String)
+        char c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println("Hello World");
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte rbytes[] = new byte[100];
+        bis.read(rbytes, 0, 11);
+        assertEquals("Incorrect string written", "Hello World", new String(
+                rbytes, 0, 11));
+        assertTrue("Newline not written", (c = (char) bis.read()) == '\r'
+                || c == '\n');
+    }
+
+    /**
+     * @tests java.io.PrintStream#println(boolean)
+     */
+    public void test_printlnZ() {
+        // Test for method void java.io.PrintStream.println(boolean)
+        int c;
+        PrintStream os = new PrintStream(bos, true);
+        os.println(true);
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte[] rbuf = new byte[100];
+        bis.read(rbuf, 0, 4);
+        assertEquals("Incorrect boolean written", "true",
+                new String(rbuf, 0, 4));
+        assertTrue("Newline not written", (c = bis.read()) == '\r' || c == '\n');
+    }
 
-	}
+    /**
+     * @tests java.io.PrintStream#write(byte[], int, int)
+     */
+    public void test_write$BII() {
+        // Test for method void java.io.PrintStream.write(byte [], int, int)
+        PrintStream os = new PrintStream(bos, true);
+        os.write(fileString.getBytes(), 0, fileString.length());
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        byte rbytes[] = new byte[4000];
+        bis.read(rbytes, 0, fileString.length());
+        assertTrue("Incorrect bytes written", new String(rbytes, 0, fileString
+                .length()).equals(fileString));
+    }
+
+    /**
+     * @tests java.io.PrintStream#write(int)
+     */
+    public void test_writeI() {
+        // Test for method void java.io.PrintStream.write(int)
+        PrintStream os = new PrintStream(bos, true);
+        os.write('t');
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
+        assertEquals("Incorrect char written", 't', bis.read());
+    }
+
+    /**
+     * @tests java.io.PrintStream#append(char)
+     */
+    public void test_appendChar() throws IOException {
+        char testChar = ' ';
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        PrintStream printStream = new PrintStream(out);
+        printStream.append(testChar);
+        printStream.flush();
+        assertEquals(String.valueOf(testChar), out.toString());
+        printStream.close();
+    }
+
+    /**
+     * @tests java.io.PrintStream#append(CharSequence)
+     */
+    public void test_appendCharSequence() {
+        String testString = "My Test String";
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        PrintStream printStream = new PrintStream(out);
+        printStream.append(testString);
+        printStream.flush();
+        assertEquals(testString, out.toString());
+        printStream.close();
+    }
+
+    /**
+     * @tests java.io.PrintStream#append(CharSequence, int, int)
+     */
+    public void test_appendCharSequenceIntInt() {
+        String testString = "My Test String";
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        PrintStream printStream = new PrintStream(out);
+        printStream.append(testString, 1, 3);
+        printStream.flush();
+        assertEquals(testString.substring(1, 3), out.toString());
+        printStream.close();
+    }
 
     /**
      * @tests java.io.PrintStream#format(java.lang.String, java.lang.Object...)
      */
     public void test_formatLjava_lang_String$Ljava_lang_Object() {
-        os = new PrintStream(bos, false);
+        PrintStream os = new PrintStream(bos, false);
         os.format("%s %s", "Hello", "World");
         os.flush();
-        bis = new ByteArrayInputStream(bos.toByteArray());
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
         byte[] rbytes = new byte[11];
         bis.read(rbytes, 0, rbytes.length);
-        assertEquals("Wrote incorrect string", "Hello World", 
+        assertEquals("Wrote incorrect string", "Hello World",
                 new String(rbytes));
+
     }
 
     /**
-     * @tests java.io.PrintStream#format(java.util.Locale, java.lang.String, java.lang.Object...)
+     * @tests java.io.PrintStream#format(java.util.Locale, java.lang.String,
+     *        java.lang.Object...)
      */
     public void test_formatLjava_util_Locale_Ljava_lang_String_$Ljava_lang_Object() {
-        os = new PrintStream(bos, false);
+        PrintStream os = new PrintStream(bos, false);
         os.format(Locale.US, "%s %s", "Hello", "World");
         os.flush();
-        bis = new ByteArrayInputStream(bos.toByteArray());
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
         byte[] rbytes = new byte[11];
         bis.read(rbytes, 0, rbytes.length);
-        assertEquals("Wrote incorrect string", "Hello World", 
+        assertEquals("Wrote incorrect string", "Hello World",
                 new String(rbytes));
     }
 
@@ -584,52 +531,28 @@
      * @tests java.io.PrintStream#printf(java.lang.String, java.lang.Object...)
      */
     public void test_printfLjava_lang_String$Ljava_lang_Object() {
-        os = new PrintStream(bos, false);
+        PrintStream os = new PrintStream(bos, false);
         os.printf("%s %s", "Hello", "World");
         os.flush();
-        bis = new ByteArrayInputStream(bos.toByteArray());
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
         byte[] rbytes = new byte[11];
         bis.read(rbytes, 0, rbytes.length);
-        assertEquals("Wrote incorrect string", "Hello World", 
+        assertEquals("Wrote incorrect string", "Hello World",
                 new String(rbytes));
     }
 
     /**
-     * @tests java.io.PrintStream#printf(java.util.Locale, java.lang.String, java.lang.Object...)
+     * @tests java.io.PrintStream#printf(java.util.Locale, java.lang.String,
+     *        java.lang.Object...)
      */
     public void test_printfLjava_util_Locale_Ljava_lang_String_$Ljava_lang_Object() {
-        os = new PrintStream(bos, false);
+        PrintStream os = new PrintStream(bos, false);
         os.printf(Locale.US, "%s %s", "Hello", "World");
         os.flush();
-        bis = new ByteArrayInputStream(bos.toByteArray());
+        ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
         byte[] rbytes = new byte[11];
         bis.read(rbytes, 0, rbytes.length);
-        assertEquals("Wrote incorrect string", "Hello World", 
+        assertEquals("Wrote incorrect string", "Hello World",
                 new String(rbytes));
     }
-
-	/**
-	 * Sets up the fixture, for example, open a network connection. This method
-	 * is called before a test is executed.
-	 */
-	protected void setUp() {
-		try {
-			bos = new java.io.ByteArrayOutputStream();
-		} catch (Throwable e) {
-			fail("Exception during setup : " + e.getMessage());
-		}
-	}
-
-	/**
-	 * Tears down the fixture, for example, close a network connection. This
-	 * method is called after a test is executed.
-	 */
-	protected void tearDown() {
-
-		try {
-			os.close();
-			bis.close();
-		} catch (Throwable e) {
-		}
-	}
 }



Mime
View raw message