Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io
In directory usw-pr-cvs1:/tmp/cvs-serv12218/src/jdk/common/com/mockobjects/io
Modified Files:
MockOutputStream.java
Log Message:
Tidy up import statements
Index: MockOutputStream.java
===================================================================
RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io/MockOutputStream.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MockOutputStream.java 8 Jul 2002 00:12:29 -0000 1.2
+++ MockOutputStream.java 8 Jul 2002 18:31:29 -0000 1.3
@@ -1,14 +1,17 @@
package com.mockobjects.io;
-import java.io.*;
-import junit.framework.*;
-
-import com.mockobjects.*;
+import com.mockobjects.ExpectationCounter;
+import com.mockobjects.ExpectationValue;
+import com.mockobjects.Verifiable;
import com.mockobjects.util.Verifier;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+
public class MockOutputStream extends OutputStream implements Verifiable {
private ExpectationValue myWriteWasCalled = new ExpectationValue("MockOutputStream.writeWasCalled");
- private ExpectationCounter myCloseCalls= new ExpectationCounter("MockOutputStream.close()");
+ private ExpectationCounter myCloseCalls = new ExpectationCounter("MockOutputStream.close()");
private ByteArrayOutputStream myBuffer = new ByteArrayOutputStream();
private boolean shouldThrowException = false;
@@ -34,7 +37,7 @@
public byte[] getContentsAsByteArray() {
return myBuffer.toByteArray();
}
-
+
public void setExpectedCloseCalls(int closeCall) {
myCloseCalls.setExpected(closeCall);
}
@@ -53,7 +56,7 @@
public void write(int b) throws IOException {
myWriteWasCalled.setActual(true);
- if (shouldThrowException) {
+ if(shouldThrowException) {
throw new IOException("Test IOException generated by request");
}
myBuffer.write(b);
|