[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-12 Thread Joerg Schaible (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441670 ] Joerg Schaible commented on IO-94: -- Personally I have always used (CGLIB-enhanced) jMock to create mocks of streams on the fly. Therefore I agree with Stephen, that

[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-12 Thread Niall Pemberton (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441672 ] Niall Pemberton commented on IO-94: --- OK but can you create a mock on the fly that emulates a file of a specified size - such as a 2GB file? New Mock InputStream

[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-12 Thread Joerg Schaible (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441674 ] Joerg Schaible commented on IO-94: -- Yes, but not *that* easy :) But what I really needed and wrote once was a NullInputStream of a specific capacity delivering bytes

[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-12 Thread Niall Pemberton (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441792 ] Niall Pemberton commented on IO-94: --- From what you describe this is what MockInputStream and MockReader do out of the box: MockInputStream:

[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-12 Thread Stephen Colebourne (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441851 ] Stephen Colebourne commented on IO-94: -- As I said before, I'm unsure of the use case outside mocking, but this is a strange world, and someone will probably think

[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-11 Thread Stephen Colebourne (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441493 ] Stephen Colebourne commented on IO-94: -- This feels almost out of scope for [io], which I've always felt was for runtime io work. Is there a use case that isn't

[jira] Commented: (IO-94) New Mock InputStream Writer implementations

2006-10-11 Thread Niall Pemberton (JIRA)
[ http://issues.apache.org/jira/browse/IO-94?page=comments#action_12441505 ] Niall Pemberton commented on IO-94: --- I can't think of a use case that isn't as a mock test object. If you do remove it then could move it into the test suite? - I