| Home >> All >> com >> mockobjects >> [ io Javadoc ] |
com.mockobjects.io: Javadoc index of package com.mockobjects.io.
Package Samples:
com.mockobjects.io
Classes:
MockWriter: A mock Writer . Example usage You may use the MockWriter like this: public void testSomething() throws IOException { MockWriter out = new MockWriter(); out.setExpectedSegment("some string"); out.setExpectedFlushCalls(1); out.setExpectedCloseCalls(1); ObjectUnderTest testee = new ObjectUnderTest(out); out.verify(); // If we get here, the mock's flush() and close() methods were // called exactly once each (order cannot be determined) and // the write() method was called with the string "some string" in it. }
MockFile
MockFileInputStream
MockIOFactory
MockOutputStream
MockPrintStream
MockPrintWriter
| Home | Contact Us | Privacy Policy | Terms of Service |